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