You can now use
regenerator with spack, the bundler for the swc project.
Previously some cjs modules are incorrectly compiled.
The bundler now supports importing / reexporting node js builtin modules. It currently does not touch such imports / exports.
Some more bugs are fixed.
swc now respectes
//# sourceMappingURL= in the input file.
swc now resolves source maps from two location (to prevent regression). It will try relative path first, and tries to resolve from root if source map isn't found.
Second check is to preserve breaking existing tools.
swc can now parse code like
swc now supports parsing a file as script. It would be useful if you are using non-strict mode codes.
Previously swc miscompiled
which is wrong because of the line commented. It's now fixed.
swc now correctly removes the namespace
TestClass from the code below.
Reported as axios import error, but actually it was a bug related to importing json files.