SWC v1.3.21 Release Notes
Release Date: 2022-11-30 // almost 2 years ago-
๐ Bug Fixes
(ci) Fix publish action for binaries (#6517) (2ac3201)
(es/minifier) Don't drop used variables from sequential inliner (#6520) (b394f9f)
(es/minifier) Make sequential inliner respect resolution order (#6509) (27ae59e)
(es/minifier) Use unsafe option for arrow => method (#6521) (9752b43)
(es/minifier) Don't convert a signed integer literal key to a numeric literal (#6529) (81224b5)
๐ (html/parser) Fix parsing of cdata (#6534) (e3cbe7e)
๐ Features
(common) Add contexts to the error messages (#6526) (b8fe04f)
๐ (es/parser) Make error message helpful (#6535) (cb15721)
(es/preset-env) Update data (#6538) (ae63220)
๐ (xml/parser) Parse cdata section (#6531) (7f8c4e0)
Miscellaneous Tasks
(bindings) Fix jemalloc on aarch64 (#6541) (d56b5a8)
(swc_core) Reexport more modules (#6548) (9b58cce)
๐ Performance
- (common) Fix perf bug of sourcemap for inputs with multi-byte chars (#6523) (47908a4)
๐จ Refactor
- ๐ (css/parser) Canonicalize only if required (#6532) (251e98c)
โ Testing
(es/minifier) Add tests for preserving top-level directives (#6545) (8d8f150)
(es/transforms) Add tests about preserving top-level directives (#6518) (5ff87af)
(es/typescript) Migrate inline tests to fixture tests (#6546) (cddbc41)
(ts/compat) Migrate inline tests to fixture testing (#6475) (cc4646a)- general: Use correct extensions for fixture tests (#6539) (7ee86d1)
๐ Build
- (cargo) Update
browerslist-rs
(#6547) (d730186)
Previous changes from v1.3.20
-
๐ Bug Fixes
(es/codegen) Preserve parens for
new
in optional chaining (#6484) (1ca281a)(es/minifier) Preserve classes with side effects in static fields (#6480) (8d906b4)
(es/react) Allow spread children (#6505) (90aa6c8)
(es/visit) Visit TypeScript satisfies expressions (#6511) (0cee0e1)
๐ Features
- (es/codegen) Skip whitespaces for comments in minify mode (#6465) (08a9e21)
Miscellaneous Tasks
๐ Performance
- (es/helpers) Improve fast-path for helper detection (#6502) (b3b5526)
๐จ Refactor
(binding/wasm) Use binding_macro (#6487) (d957aac)
(es) Remove settings related to
privateInObject
(#6468) (c57307d)
๐ Build
- (publish) Upload cli binaries to github release (#6495) (4f8af16)