Changelog: swc v1.2.48
#
Bugfixes#1405)#
Parsing of generics (The parser of swc failed to parse below code if tsx
is enabled.
This is reported by a deno team member via discord and now it's fixed.
await (await foo)()
(#1395)#
swc now doesn't break code like below.
#1413)#
Catch parameters (swc previously miscompiled code like below.
This was the case because the hygiene
passs didn't do caclulated renaming operations while handling a catch clause.
It's now fixed.
#
Bundler bugfixes#1373)#
Correct handling of export defaults (Previously the bundler miscompiled some export-default
-ed functions if it depends on hoisting.
Affected code looks like
but it's now fixed.
#
Performacne improvements#1411)#
Parser performance improvement (This pr was intended to reduce wasted memry space and it resulted in 10% performance boost of the parser.
#
New features#1408)#
New jsx transforms (Config api is almost identical with the one of babel.
#1374)#
preset-env with custom config path (Thanks to @mcnicholls, swc now supports using .browserlistrc
or package.json
in any path for determining environment.
See docs for more details.
#
Misc#1418)#
Reduction of binary size (Thanks to @Brooooooklyn, the binary size of swc is reduced.