Packages

@swc/wasm

1.16.21 · 31 Oct 2026Apache-2.01.3M / weekRepositoryHomepagenpmAtom feed

Your version

1.16.12

29 Sep 2026Where it was published

1.16.21 is the newest release of 1.x.

In short

5 new3 faster97 fixed2 changed10 internal

Release note

Bug Fixes

  • (binding/node) Return an error when a file cannot be read instead of panicking

  • (bindings) Detect macOS ACLs with supported APIs

  • (es) Decode template raw values when cooked is missing

  • (es/codegen) Minify unicode escapes in template literals

  • (es/codegen) Separate generic type assertion openers

  • (es/compat) Preserve array rest when lowering nested object rest

  • (es/lexer) Stop iteration when input is exhausted

  • (es/minifier) Check eval and arguments usage in var define scope

  • (es/minifier) Drop unused object pattern defaults

  • (es/minifier) Preserve Array spread arity

  • (es/minifier) Preserve holes in array joins

  • (es/minifier) Preserve catch return before finally

  • (es/minifier) Skip prototype setters in Object.keys

  • (es/minifier) Guard static helper evaluation

  • (es/minifier) Preserve string import names

  • (es/minifier) Preserve unsigned shift coercion

  • (es/minifier) Fold missing codePointAt to undefined

  • (es/minifier) Fold local deletes to false

  • (es/minifier) Preserve Function.length arity

  • (es/minifier) Preserve rest RegExp identity

  • (es/minifier) Preserve lexical method defaults

  • (es/minifier) Preserve arguments after IIFE spreads

  • (es/minifier) Preserve string method arguments

  • (es/minifier) Preserve optional-chain continuation throws

  • (es/minifier) Preserve constant switch test effects

  • (es/minifier) Preserve shadowed undefined yield values

  • (es/minifier) Retain unsafe Symbol call arguments

  • (es/minifier) Guard similar if merges

  • (es/minifier) Preserve conditional assignment target order

  • (es/minifier) Preserve Set and Map iteration

  • (es/minifier) Preserve sequence IIFE argument evaluation

  • (es/minifier) Respect global defs root bindings

  • (es/minifier) Format toExponential compatibly

  • (es/minifier) Preserve tiny toPrecision calls

  • (es/minifier) Preserve async IIFE return values

  • (es/minifier) Retain rest params in dynamic scopes

  • (es/minifier) Safely hoist property callees

  • (es/minifier) Preserve catch assignments before finally

  • (es/minifier) Preserve delete operand effects

  • (es/minifier) Preserve unary comparison evaluation order

  • (es/minifier) Preserve branches when collapsing assignments

  • (es/minifier) Preserve empty array assignments

  • (es/minifier) Preserve empty IIFE parameter effects

  • (es/minifier) Preserve empty join coercion

  • (es/minifier) Preserve empty object destructuring errors

  • (es/minifier) Deduplicate folded Object.keys

  • (es/minifier) Preserve finalizer breaks in switches

  • (es/minifier) Preserve strict equality for repeated calls

  • (es/minifier) Preserve class scope in if-return negation

  • (es/minifier) Preserve function expression names

  • (es/minifier) Preserve finalizer completions

  • (es/minifier) Evaluate String.raw templates with raw quasis

  • (es/minifier) Preserve returns in finalizers

  • (es/minifier) Scan all adjacent hoist declaration pairs

  • (es/minifier) Preserve reassigned arguments access

  • (es/minifier) Preserve switch fallthrough cases

  • (es/minifier) Preserve lone surrogate template values

  • (es/minifier) Preserve spread iteration in unused builtins

  • (es/minifier) Preserve computed update targets

  • (es/minifier) Check class side effect

  • (es/minifier) Preserve let initialization when dropping unused variables

  • (es/minifier) Do not merge sequences across array spreads

  • (es/minifier) Preserve destructuring patterns with PURE-annotated initializers

  • (es/minifier) Mark properties assigned through destructuring targets as mutated

  • (es/minifier) Keep function and class declarations whose self-reference is dropped

  • (es/minifier) Avoid inline arrow with this when used as arg

  • (es/parser) Reject unicode escapes in RegExp flags

  • (es/parser) Allow line breaks before enum names

  • (es/parser) Allow ambient rest trailing commas

  • (es/parser) Respect line breaks after declare

  • (es/parser) Parse optional generator methods

  • (es/parser) Allow line breaks before import attributes

  • (es/parser) Allow await identifiers in explicit Script parsing

  • (es/parser) Respect line breaks before definite assignment assertions

  • (es/parser) Restore strict context after classes

  • (es/parser) Reset static block context for nested declarations

  • (es/parser) Allow eval and arguments in ambient function declarations

  • (es/parser) Parse static constructor methods in JavaScript

  • (es/parser) Allow of bindings in await using loops

  • (es/parser) Accept valid declare readonly field initializers

  • (es/parser) Preserve elisions in arrow binding patterns

  • (es/parser) Isolate constructor function contexts

  • (es/parser) Correctly round non-decimal numeric literals

  • (es/parser) Allow string import and export names after type

  • (es/parser) Preserve type references named asserts before line breaks

  • (es/parser) Recognize named optional and rest tuple elements

  • (es/parser) Support leading pipes in Flow match patterns

  • (es/parser) Allow escaped keywords as property names

  • (es/parser) Parse optional renamed Flow component parameters

  • (es/typescript) Fold optional-chained enum member reads

  • (hstr) Avoid panic in Wtf8::starts_with

  • (html/minifier) Preserve adjacent script elements

  • (html/parser) Preserve customizable select markup

  • (node) Repair native release verification and cache handling

  • (nodejs) Complete Amaro REPL support APIs

  • Use Rust changeset package names

  • Correct quoted package name in changeset

Features

  • (bindings) Add private compressed native addon foundation

  • (bindings) Gate native npm releases on verified carriers

  • (es/minifier) Honor /*#__PURE__*/ on property reads and destructuring patterns

  • (es/minifier) Account for shorthand expansion when inlining

  • (es/module) Support moduleRoot for AMD module IDs

Performance

  • (es/preset-env) Reduce binary size with browserslist deflate

  • (es/transforms) Skip script traversal in export-default-from

  • (swc_core) Deduplicate ICU dependencies

Mod

  • (es/minifier) Check Map/Set param is array

Revert