Skip to main content

Changelog: swc v1.2.89

· One min read

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

Improvements#

wasm: paths, baseUrl, hygiene#

Now @swc/wasm supports jsc.paths and jsc.baseUrl. Additionally, it now renames variables correctly.

Implemented by #2279.

Bugfixes#

hygiene (#2211)#

Previously the hygiene pass didn't consider child scope correctly.

Fixed by #2266.

codegen: Sourcemap of string literals (#2253)#

SourceMaps were off by one.

Fixed by #2256.

codegen: static before readonly#

Previously the code emitted readonly before static.

Fixed by @dsherret and by #2271

minifier: Variable merging (#2262)#

Previously the minifier wrongly dropped some variables.

Fixed by @dsherret and by #2271

opt-chain: ES2019#

Previously swc treated it as a pass for ES2018, but now it's treated as a pass for ES2019.

Fixed by #2247.