ChangeLog: swc v1.2.31
#
Domain changeThe swc project now uses swc.rs, instead of swc-project.github.io. Thank you contributors!
#
Bugfixes1083)#
(spack) export * in entry (Previously, export * from './a'
only worked in non-entry files.
It's a common pattern to export everything from main module, so I think it's an important improvement.
#1086)#
let with for in/of (Previously, swc miscompiled the code shown below.
The bug is realted to left hand side in the for-in loop.
#1091)#
File names in the source map is preserved (This is about feeding source code into swc after processing using other tools with source map support.
@lujjjh kindly found the cause and proposed solution.
#1076)#
(spack) Fixed imports (The spack
had a bug related to packages without main
field in package.json
.
#1092)#
optional chaining (Starting with the version, swc can compile
into the correct output, namely
#1093)#
logical operators and function calls (Previously, swc erroneously removed the parenthesis which wraps fnA || fnB
. This is now fixed.
#1036)#
regenerator scoping issue (I had a hard time debugging this, because all pass work correctly. It was pass ordering issue, and I fixed pass ordering. The bug affects user who used an array pattern ([a,,c]
) or an object pattern ({ a: foo }
) within async function.
Example of the affected code is show below.