swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/minifier): preserve computed update targets (#12326) **Description:** Preserve computed member update targets while applying `global_defs`, so a matching definition cannot replace an update operand with a literal. Computed property-key expressions remain eligible for replacement. Adds SWC-owned fixture and execution coverage for prefix/postfix updates, static and locally shadowed targets, regular computed reads, and computed key substitution. **BREAKING CHANGE:** None. **Related issue (if exists):** Closes #12313 --------- Co-authored-by: Labor0 Bot <279936132+labor0-bot[bot]@users.noreply.github.com>
main
18 minutes ago
fix(es/minifier): preserve spread iteration in unused builtins (#12334) **Description:** Preserve iterator consumption when unused builtin calls and constructors have spread arguments. The minifier now leaves such expressions intact instead of extracting only argument expressions, while retaining ordinary argument-effect extraction. Adds a SWC-owned execution fixture covering `Boolean(...g())`, `new Boolean(...g())`, normal `Boolean(g())` extraction, and generator throws during spread evaluation. **BREAKING CHANGE:** None. **Related issue (if exists):** Closes #12303 **Validation:** - `UPDATE=1 cargo test -p swc_ecma_minifier` - `cargo test -p swc_ecma_minifier` - `./scripts/test.sh` - `./scripts/exec.sh` - `cargo fmt --all` `cargo clippy --all --all-targets -- -D warnings` is unavailable because runner-disabled submodule initialization leaves `swc_html_parser` html5lib fixtures absent; its fixture macros report no tests and Clippy then rejects resulting unused imports. --------- Co-authored-by: Labor0 Bot <279936132+labor0-bot[bot]@users.noreply.github.com>
main
19 minutes ago
fix(es/minifier): preserve lone surrogate template values (#12329) **Description:** Preserve unpaired UTF-16 surrogate code units when the minifier converts string values with newlines into template literals. The template raw encoder now emits a Unicode escape introducer instead of preserving the surrogate as literal backslash-u text. Adds SWC-owned fixture and execution coverage for lone high and low surrogates, valid pairs, escaped newlines, literal backslash-u text, interpolation markers, backticks, and controls. **Related issue (if exists):** Closes #12304 --------- Co-authored-by: Labor0 Bot <279936132+labor0-bot[bot]@users.noreply.github.com>
main
20 minutes ago
fix(es/minifier): preserve switch fallthrough cases (#12328) ## Summary - Preserve known-nonmatching switch case bodies that an earlier unknown case can reach by fallthrough. - Keep abrupt completions and case-test evaluation semantics intact while retaining existing dead-case var hoisting. - Add SWC-owned executable regression coverage for the affected fallthrough and side-effect paths. ## Validation - `cargo test -p swc_ecma_minifier --test compress 12298` - `cargo fmt --all` - `cargo clippy -p swc_ecma_minifier --all-targets -- -D warnings` Closes #12298 --------- Co-authored-by: Labor0 Bot <279936132+labor0-bot[bot]@users.noreply.github.com>
main
20 minutes ago
fix(es/minifier): preserve reassigned arguments access (#12235) **Description:** Avoid replacing indexed `arguments` reads with parameter references when a parameter has been reassigned. This preserves the distinct strict-mode and missing-argument semantics while retaining the existing safe substitutions. Add SWC-owned #12209 fixture coverage for strict and sloppy reassigned parameters, a missing argument, and an unmodified control. **BREAKING CHANGE:** None. **Related issue (if exists):** Closes #12209 **Tests:** - `cargo test -p swc_ecma_minifier` - `./scripts/test.sh` - `./scripts/exec.sh` - `cargo fmt --all` - `cargo clippy -p swc_ecma_minifier --all-targets -- -D warnings` --------- Co-authored-by: Labor0 Bot <279936132+labor0-bot[bot]@users.noreply.github.com>
main
21 minutes ago
purge decorator
Austaras:main
26 minutes ago
purge decorator
Austaras:main
35 minutes ago
test(minifier): align environment-specific join output
fix/minifier-constant-join-3
7 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/minifier): Check class side effect
#12336
39 minutes ago
f687fc8
Austaras:main
CodSpeed Performance Gauge
+3%
fix(es/minifier): preserve string coercion in array join folding
#12279
7 hours ago
7549824
fix/minifier-constant-join-3
CodSpeed Performance Gauge
0%
docs(es/minifier): clarify decorator input and test boundaries
#12337
8 hours ago
f8dd888
codex/minifier-decorator-guidance
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs