swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
docs(es/minifier): Document the unshadowed Math assumption Adds an exec test covering negative folded results in member-object position, which the fixer already parenthesizes.
YosefBlandin:feat/minifier-math-constant-folding
5 hours ago
feat(es/minifier): Evaluate Math.floor, Math.ceil, Math.round and Math.sqrt Extends eval_as_number with four more Math methods, guarded so a call is only replaced when the resulting literal is strictly shorter than the call itself. Math.round is implemented against the ECMA-262 rule (ties round towards +Infinity) rather than f64::round, which rounds ties away from zero and disagrees on every negative half.
YosefBlandin:feat/minifier-math-constant-folding
6 hours ago
feat(es/minifier): Evaluate Math.floor, Math.ceil, Math.round and Math.sqrt Extends eval_as_number with four more Math methods, guarded so a call is only replaced when the resulting literal is strictly shorter than the call itself. Math.round is implemented against the ECMA-262 rule (ties round towards +Infinity) rather than f64::round, which rounds ties away from zero and disagrees on every negative half.
YosefBlandin:feat/minifier-math-constant-folding
6 hours ago
fix(react-compiler): preserve TypeScript function overload signatures (#12115) **Description:** Preserve whether a function originally had an implementation body when converting through the React Compiler AST. React Compiler's `FunctionDeclaration` representation always contains a block body. The SWC converter therefore synthesized an empty block for TypeScript overload signatures, but the reverse conversion did not restore the original missing body. The TypeScript transform then treated every overload signature as a concrete runtime function, producing duplicate default exports. This change records the original body presence in `PreservedAst` and restores `None` for overload signatures. The integration test forces React Compiler output with `compilationMode: "all"` and verifies that the overloads remain bodyless while the implementation retains its body. Validation: - `cargo fmt --all` - `cargo test -p swc_ecma_react_compiler` - `cargo clippy --all --all-targets -- -D warnings` **BREAKING CHANGE:** None. **Related issue (if exists):** https://github.com/web-infra-dev/rspack/issues/15158
main
17 hours ago
chore: Add changeset
CPunisher:codex/fix-cargo-deny-lru-advisory
17 hours ago
chore: Add changeset
codex/fix-react-compiler-default-overload
19 hours ago
chore: Update star history chart URL The current star history chart is broken due to GitHub stargazer API restrictions. Update the chart to use a working alternative.
PingouinFerreux:fix/star-history-chart
23 hours ago
fix(es/minifier): bound arguments parameter injection (#12053) **Description:** Replacing an `arguments` access with a named parameter can require injecting every missing parameter up to that index. A large index can therefore generate an unbounded number of parameters and substantially increase output size. This PR follows Terser's fixed bound: an access is replaced only when it reuses an existing parameter or requires injecting at most five additional parameters. Larger gaps remain as `arguments` accesses, with fixture coverage for the five/six boundary. **Related issue (if exists):** - Close: #12108 --- - #12043 - #12047 - #12050 - #12048 - #12051 - #12052 - **#12053** (current) - #12054 - #12055 - #12056 - #12057 - #12058 - #12049 - #12059 - #12060
main
1 day ago
Latest Branches
CodSpeed Performance Gauge
0%
feat(es/minifier): Evaluate Math.floor, Math.ceil, Math.round and Mat…
#12117
5 hours ago
e9d61a4
YosefBlandin:feat/minifier-math-constant-folding
CodSpeed Performance Gauge
0%
chore(deps): Update lru to 0.18.2 to fix cargo deny
#12116
17 hours ago
dbc4a4e
CPunisher:codex/fix-cargo-deny-lru-advisory
CodSpeed Performance Gauge
0%
fix(react-compiler): preserve TypeScript function overload signatures
#12115
19 hours ago
15d0b4f
codex/fix-react-compiler-default-overload
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs