Skip to main content

Changelog: swc v1.2.73

· One min read

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

Improvements#

import.meta in scripts#

Now swc reports an error if import.meta is used in scripts.

Implemented by @sosukesuzuki and by #1999.

Bugfixes#

codegen of regex (minified) (#2000)#

Previously swc omitted a semicolon in some cases.

Fixed by #2004.

Order of import statements#

Previously the minifier changed order of import statements.

Fixed by #2005.

jsx: @jsxImportSource in classic mode (#1933)#

Previously swc ignored @jsxImportSource if runtime is classic, but this is wrong.

Fixed by #2004.