swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/regexp): preserve source for wrapped named groups (#11757) ## Summary - Preserve original named-group regex source in RegexpPass and pass it as an optional third arg to _wrap_reg_exp. - Extend _wrap_reg_exp runtime helper signature to _wrap_reg_exp(re, groups, source?) while keeping backward compatibility. - Add a safe source getter on wrapped regex objects: return preserved source only when it compiles with current flags, otherwise fall back to native RegExp.prototype.source. - Add regression coverage for #11754 in fixture and exec tests. ## Tests - git submodule update --init --recursive - UPDATE=1 cargo test -p swc (fails on existing unrelated source_map::issue_622 assertion in this environment) - cargo test -p swc (same unrelated source_map::issue_622) - cargo test -p swc_ecma_transformer - cargo test -p swc_ecma_transforms_base - UPDATE=1 cargo test -p swc --test projects fixture_tests__fixture__issues_11xxx__11754__input -- --ignored --exact - cargo test -p swc --test exec run_fixture_test_tests__exec__issues_11xxx__11754__exec_js -- --ignored --exact - cargo fmt --all - cargo clippy --all --all-targets -- -D warnings Fixes #11754
main
4 hours ago
fix(es/minifier): cap deep if_return conditional chains (#11758) ## Summary - add an internal safety limit for `if_return` chain folding to avoid generating extremely deep nested conditional expressions - skip `if_return` merging when the merge window would create more than 500 chained conditionals - add regression fixture for `swc-project/swc#11736` under `tests/terser/compress/if_return/issue_11736` ## Why Long `if (...) return ...` chains can be folded into very deep ternary trees, which may hit parser/transform recursion limits in real engines (notably WebKit on iOS). ## Tests - `git submodule update --init --recursive` - `UPDATE=1 cargo test -p swc_ecma_minifier --test compress -- --include-ignored issue_11736` - `UPDATE=1 cargo test -p swc_ecma_minifier --test mangle -- --include-ignored issue_11736` - `cargo test -p swc_ecma_minifier --test compress -- --include-ignored issue_11736` - `cargo test -p swc_ecma_minifier --test mangle -- --include-ignored issue_11736` - `(cd crates/swc_ecma_minifier && ./scripts/exec.sh)` - `(cd crates/swc_ecma_minifier && ./scripts/test.sh)` - `cargo test -p swc_ecma_minifier` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` --- Closes https://github.com/swc-project/swc/issues/11736
main
5 hours ago
fix(es/minifier): Handle `toExponential(undefined)` (#11583) Closes #11572 --------- Co-authored-by: DongYun Kang <kdy.1997.dev@gmail.com>
main
5 hours ago
test: update tsc regexp group references
kdy1/fix-11754-regexp-source-groups
5 hours ago
fix(minifier): guard expr-body iife inline for closure params
kdy1/fix-11755-iife-inline-guard
5 hours ago
fix(html/codegen): keep </p> for span-parent paragraphs (#11756) ## Summary - avoid omitting `</p>` when the parent is `<span>` during HTML tag omission - add regression fixture for `swc_html_codegen` (`issue-11748`) - add recovery fixture for `swc_html_minifier` (`issue-11748`) ## Verification - `cargo test -p swc_html_codegen --test fixture -- --ignored issue_11748` - `cargo test -p swc_html_minifier --test fixture -- --ignored issue_11748` - `cargo test -p swc_html_codegen` - `cargo test -p swc_html_minifier` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` Closes #11748
main
5 hours ago
test: update regexp named-group fixture outputs
kdy1/fix-11754-regexp-source-groups
5 hours ago
Update package versions and fix minifier Update package versions and fix minifier for conditional chains.
kdy1/fix-11736-if-return-chain-limit
5 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/regexp): preserve source for wrapped named groups
#11757
5 hours ago
6bcebfa
kdy1/fix-11754-regexp-source-groups
CodSpeed Performance Gauge
0%
fix(minifier): guard expr-body iife inline for closure params
#11759
5 hours ago
edae3f7
kdy1/fix-11755-iife-inline-guard
CodSpeed Performance Gauge
0%
fix(es/minifier): cap deep if_return conditional chains
#11758
5 hours ago
3785d3e
kdy1/fix-11736-if-return-chain-limit
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs