Changelog: swc v1.1.11
#
AST#
TsExpressionWithTypeArgumentsTsExpressionWithTypeArguments
has 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.
#
Parser#540)#
span of import / export (Spans of import statements and export statements are fixed.
#551)#
span of await in for-of statement (Spans of await
token in for-of statement is fixed.
#547)#
readonly properties in class (Previously,
was parsed as
But from now on, it's correctly parsed as readonly.
#545)#
import.meta (swc
now accepts
and
#
Codegen#546)#
default import with namespace (Previously,
is printed as
which is wrong. It is now printed correctly as
#544)#
indent after line comment (It means,
is preserved. Previously, indent after a line comment was removed.
#
Transforms#554)#
regenerator (transform-regenerator
(from babel) is implemented in swc, and invoked automatically if you target es3
or es5
.
#542)#
whitespace after inner JSX tag is preserved (is compiled as
instead of
which is wrong.