@swc/wasm
1.16.21 · 31 Oct 2026Apache-2.01.3M / weekRepositoryHomepagenpmAtom feed
1.16.21 is the newest release of 1.x.
In short
4 new6 faster18 fixed7 internal
Release note
Bug Fixes
(es/codegen) Emit leading comments for JSX elements, fragments, and empty expressions
(es/decorators) Invoke addInitializer callbacks for decorated fields
(es/es3) Visit export decl body even if name is not reserved
(es/es3) Remove duplicate code
(es/minifier) Treat new expression with empty class as side-effect free
(es/minifier) Escape control characters when converting strings to template literals
(es/minifier) Handle unused parameters with default values
(es/module) Preserve ./ prefix for hidden directory imports
(es/parser) Validate dynamic import argument count
(es/parser) Allow compilation with --no-default-features
(es/parser) Skip emitting TS1102 in TypeScript mode
(es/parser) Reject ambiguous generic arrow functions in TSX mode
(es/parser) Disallow NumericLiteralSeparator with BigInts
(es/react) Preserve HTML entity-encoded whitespace in JSX
(es/renamer) Prevent duplicate parameter names with destructuring patterns
(es/testing) Skip update when expected output has invalid code
(es/typescript) Don't mark enums with opaque members as pure
(preset-env) Distinguish unknown browser vs empty config
Features
(cli) Add --root-mode argument for .swcrc resolution
(es/module) Make module transforms optional via
modulefeature(es/regexp) Implement unicode property escape transpilation
(es/transformer) Merge ES3 hooks into swc_ecma_transformer
Performance
(bindings) Optimize string handling by avoiding unnecessary clones
(es/codegen) Make
commit_pending_semiexplicit inwrite_punct(es/es2015) Port ES2015 transforms to hook-based visitors
(es/es3) Use hooks pattern for single AST traversal
(es/minifier) Use combined AST traversal
(es/transformer) Add inline hint