Changelog: swc v1.1.15
#
Bugfixes#604)#
block scoping (swc
had a serious bug bug.
swc
compiled
as
which is wrong. By tracking idetifier usages in nested function, swc
now emits correct output.
New output is very simillar to the one of babel
.
#604)#
hygiene (Use-use conflict detection introduced in v1.1.14
had a serious bug. Some identifiers like Object
are inherently used multiple time. It resulted in an use-use conflict and there was a bug.
By making an use-bind conflict for global objects, swc
can handle a code like
It will be compiled as
to make other usages of native identifier safe.