Avatar for the swc-project user
swc-project
swc
BlogDocsChangelog

Performance History

Latest Results

fix(es/decorators): Do not transform decorators when target is esnext `syntax.decorators()` was the only gate on the decorator pass, so it ran regardless of the configured `target`. `tsc` leaves standards-track decorator syntax untouched once `target` is `esnext`, assuming native runtime support, while still always lowering legacy (`experimentalDecorators`) decorators, which have no native runtime form. Mirror that: skip the decorator pass when `target` is `esnext` unless legacy decorators are in effect (default `decoratorVersion` `"2021-12"` with `legacyDecorator: true`). Fixes #11784 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
akashchamp:fix/decorator-esnext-target
1 day ago
revert(es/minifier): Revert #12384 (#12419) **Description:** Revert #12384 in full. The PR introduced per-site `/*#__PURE__*/` handling for property reads and destructuring patterns, alongside an optimization that drops unused member accesses under `pure_getters`. Both changes are removed. [Austaras's review comment](https://github.com/swc-project/swc/pull/12384#issuecomment-5744534581) questions adding the annotation behavior when esbuild and Terser do not support it; the [follow-up](https://github.com/swc-project/swc/pull/12384#issuecomment-5756752307) argues that SWC should not be its sole implementer. These comments are the reason for this revert. The conflict with follow-up PR #12386 is resolved by keeping its safety fix: a PURE annotation on an initializer does not make destructuring safe to remove. The four Terser fixtures enabled by #12384 return to the postponed list. A new SWC fixture checks that annotated property reads and patterns remain while existing PURE call handling still works. **BREAKING CHANGE:** The already published per-site PURE behavior for property reads and destructuring patterns is removed. `pure_getters` no longer drops unused member accesses in statement position. The changeset lists `swc_ecma_minifier` and `swc_core` as major. **Related issue (if exists):** #12384 **Testing:** - `cargo test -p swc_ecma_minifier` - `(cd crates/swc_ecma_minifier && ./scripts/exec.sh)` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings`
main
1 day ago
chore: Add changeset
kdy1/revert-pr-12384
1 day ago
check strict mode
Austaras:main
1 day ago

Latest Branches

CodSpeed Performance Gauge
0%
fix(es/decorators): Do not transform decorators when target is esnext#12422
1 day ago
dde494e
akashchamp:fix/decorator-esnext-target
CodSpeed Performance Gauge
0%
1 day ago
e9da4c3
dajiaohuang:fix/9694-ts-import-equals-module-detection
CodSpeed Performance Gauge
-2%
1 day ago
80bb95c
dajiaohuang:fix/9655-dynamic-musl-path
© 2026 CodSpeed Technology
Home Terms Privacy Docs