swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/minifier): preserve switch fallthrough termination (#11971) **Description:** Fixes switch termination detection so fallthrough from matched cases into later cases is accounted for before dead-code elimination. This preserves code after switches like `default: return 1; case "0":`, where the later empty case can still complete normally. This PR updates `StmtExt::terminates`, adds focused switch termination tests, adds issue #11970 minifier fixture coverage, and adds an exec regression proving `classify("0")` still reaches the post-switch `return 2`. **Testing:** - `git submodule update --init --recursive` - `UPDATE=1 cargo test -p swc_ecma_minifier` - `cargo test -p swc_ecma_utils` - `cargo test -p swc_ecma_minifier` - `(cd crates/swc_ecma_minifier && ./scripts/exec.sh issue_11970)` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` **Related issue:** Closes #11970
main
46 minutes ago
fix(es/minifier): preserve switch fallthrough termination
kdy1/fix-switch-fallthrough-termination
1 hour ago
fix(es/minifier): preserve switch fallthrough termination
kdy1/fix-switch-fallthrough-termination
1 hour ago
fix async generator preset env repair
codex/fix-async-generator-chrome-60
4 hours ago
fix(es/modules): resolve relative symlinked inputs from cwd (#11883) **Description:** Fixes a `jsc.paths` + `jsc.preserveSymlinks` path rewriting bug when SWC is invoked with a relative input filename. Relative source filenames should be interpreted from the current process directory, while path-mapped targets should continue to resolve from `jsc.baseUrl`. The bug showed up in Bazel-style symlink layouts where the relative input path was accidentally re-rooted under `jsc.baseUrl`, producing too many `../` segments in emitted CommonJS `require()` paths. This PR also adds a regression test for issue 11880 using a Bazel-like symlinked layout and verifies that `#/apis/auth` rewrites to `../../apis/auth`. **Related issue:** Fixes #11880 **Validation:** - `git submodule update --init --recursive` - `cargo test -p swc_ecma_transforms_module issue_11880` - `cargo test -p swc_ecma_transforms_module` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings`
main
4 hours ago
Merge pull request #3 from mattcosta7/copilot/fix-eslint-suppression-rules-again [WIP] Update eslint suppression rules and PR description
mattcosta7:copilot/fix-eslint-suppression-rules
7 hours ago
revert: undo whitespace-only changes in files unrelated to eslintSuppressionRules fix
mattcosta7:copilot/fix-eslint-suppression-rules
9 hours ago
fix(preset-env): handle async generator edge cases
codex/fix-async-generator-chrome-60
1 day ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/minifier): preserve switch fallthrough termination
#11971
2 hours ago
9e33cfa
kdy1/fix-switch-fallthrough-termination
CodSpeed Performance Gauge
0%
fix(es/preset-env): fix async generator env transform for Chrome 60
#11959
4 hours ago
65d34b8
codex/fix-async-generator-chrome-60
CodSpeed Performance Gauge
0%
fix(react-compiler): default eslintSuppressionRules to match babel-plugin-react-compiler
#11969
7 hours ago
4061391
mattcosta7:copilot/fix-eslint-suppression-rules
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs