swc gets ability to detect required transforms and polyfills based on target. Target includes browser with specific version (
"chrome 49"), or complex query (
"last 2 versions").
would enable transformations and inject polyfills to run code on last 2 versions of browsers and node js.
If you want to use existing browserslist config, you can just omit
This will follow browserslist queries of the project.
See docs for more information.
incorrectly contained the span of
swc can now parses it correctly.
Some users uses swc's parser within their rust project, and reported an error.
is now compiled as
Originally, it was compiled as