Changelog: swc v1.2.20
#
Bugfixes#964)#
spack respects swcrc (Spack supports .swcrc
properly. Just like webpack + babel environment, the configuration is determined per-file. You can even mix tsx
, ts
, js
if you want.
#969)#
spack handles common js modules properly (Previously common js modules were improperly handled. After some very hard work, I managed to fix it and common js imports are transcompiled to compact code.
Spack generates clean code, just like the code below.
Spack is designed to emit bundle as smallest as possible when minified.
You can now use spack to bundle react projects. See an integration test for react in the swc main repository.
#963)#
lodash-es is supported (lodash-es
accesses exports
even if it's an es module. In order to handle name conflict, swc
prevously rename exports
to something different.
It's now handled more sensitively to avoid breaking codes.
#961)#
Parameter decorators (Note: this applies to typescript decorators
Previously, decorators on a parameter which does not have initializer were broken.
It was undefined, which is wrong, and it's now an instance of Subject
.