typeArguments instead of
typeParams. This is technically breaking change, but I didn't bumped major version because I don't think the change break real world code.
Spans of import statements and export statements are fixed.
await token in for-of statement is fixed.
was parsed as
But from now on, it's correctly parsed as readonly.
swc now accepts
is printed as
which is wrong. It is now printed correctly as
is preserved. Previously, indent after a line comment was removed.
transform-regenerator (from babel) is implemented in swc, and invoked automatically if you target
is compiled as
which is wrong.