Skip to main content

Changelog: swc v1.2.81

· One min read

To see full list of patches, please visit https://github.com/swc-project/swc/milestone/182?closed=1

Improvements#

Support for new.target (#1179)#

swc now supports transforming new.target. It uses test suite from babel, and all tests are passing.

Implemented by #2129.

jsc.experimental.optimizeHygiene (#1600, #2137)#

Previously swc renamed lots of variable, but you can now speficy jsc.experimental.optimizeHygiene to make swc rename only if required.

Implemented by #2145.

Bugfixes#

bundler: Reexports from common js modules (#2124)#

Previously the bundler fails to handle esm reexports from cjs modules.

Fixed by #2143.

misc#

Typo: strictMode in typings#

Fixed by @Songkeys and by #2116.

Typo: ExportNamespaceSpecifier in typings#

Fixed by @ifiokjr and by #2136.

Typo: externalModules in typings#

Fixed by @ifiokjr and by #2135.