Changelog: swc v1.1.12
#
AST#557)#
GetterProperty (The code below is a valid typescript file.
Now swc's GetterProperty
has a field named typeAnnotation
and swc can parse it correctly.
#560)#
TsImportType (Import type havs type arguments rather than type params.
#
ParserThanks to @dsherret, may span-related bugs of parser is fixed.
#558)#
Span of patterns (Span of patterns are fixed.
#566)#
Span of classes and interfaces (Span of classes and interfaces are fixed.
#555)#
Comments on last statement (Previously comments before }
was removed silently.
#574)#
Wrong error messages are removed (is a valid typescript code. swc
emitted an error like
The error is removed.
#
Transforms#565)#
Nested if statement (swc
optimizes javascript file if possible. But there was a bug related to it.
was miscompiled as
From now, braces are correctly preserved and swc
emits