Changelog: swc v1.1.46
#
Bugfixes#790)#
resolver: arrow expression (swc
had a bug that occurs if an arrow parameter and local binding has a same name. Due to the bug, code like
was miscompiled. It is now fixed.
as
expressions (#787)#
types in Previously, swc
didn't detect type-only imports correctly if as
is used. It means,
was compiled as
instead of
Fix was quite simple. By making swc
drop type before visiting whole expression, typescript type casting expressions are now stripped out.