swc now imports
regenerator-runtime instead of
@babel/runtime/regenerator. This is not a breaking change because
@babel/runtime depends on
From now on, you can remove
@babel/runtime from dependencies.
Instead of showing
swc emits proper error message (
swc: You have to install browserslist to use env) to stderr.
TypeScript 3.8 added the concept of private fields. As
swc had private field support for ecmascript, adding support for typescript was easy.
TypeScript 3.8 allows code like
As it's official typescript syntax,
export * as namespace from 'foo' does not require changing any config.
Previously, codes like
were broken by
swc handles escapes in template literals correctly.
swc strips out type-only imports correctly.