Changelog: swc v1.1.10: preset-env
#421)#
preset-env (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 targets
.
This will follow browserslist queries of the project.
See docs for more information.
#
parser bugfixes#535)#
span of from clauses (Span of "test";
in
incorrectly contained the span of ;
. swc
can now parses it correctly.
#538)#
declare (Some users uses swc's parser within their rust project, and reported an error.
Note that this had no effects on users who use swc via javascript api.
#541)#
comments (is now compiled as
Originally, it was compiled as