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.
swc now doesn't break code like below.
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.
Previously the bundler miscompiled some export-
default-ed functions if it depends on hoisting.
Affected code looks like
but it's now fixed.
This pr was intended to reduce wasted memry space and it resulted in 10% performance boost of the parser.
Config api is almost identical with the one of babel.
See docs for more details.