Now swc emits proper metadata for union of string literals, like in codes like
Previously, the code printed
undefined when compiled with swc which is wrong.
It is now
For code like
swc now emits
In previous versions, the
'use strict' directive was emitted twice.
Previously swc miscompiled the code below.
\r\n in template literals was previously parsed as
\n, but it's now parsed as
To bypass restrictions of rust, swc uses a trick named
It modifies identifier at the end to prevent conflict between identifiers.
But this operation can be problematic if the name of class matters.
depends on the class name.
es5, swc broke some codes with switch statements in for loops like
It is now fixed.
bugfix/transform-tagged-template-caching is added.