Skip to main content

Changelog: swc v1.2.79

· One min read

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

Improvements#

Error for top-level await in sciprts#

swc now emits a user-friendly error message for top level awaits in a script.

Implemented by @sosukesuzuki and by #2094

minify.format.comments (#2095)#

swc now supports format.comments of terser, which controls the comments.

Implemented by #2095.

Bugfixes#

codegen: ~ (#2091)#

Previously swc wrongly skipped a semicolon before ~ when minification is enabled.

Fixed by #2104.