SWC v1.3.21 Release Notes

Release Date: 2022-11-30 // over 1 year 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

    • (ci) Reduce trigger scope for PRs (#6486) (7fe091a)

    • (ci) Skip benchmark for forks (#6489) (78af96e)

    ๐ŸŽ 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)