swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(preset-env): handle async generator edge cases
codex/fix-async-generator-chrome-60
13 hours ago
fix(es/modules): normalize windows path prefixes
kdy1/fix-issue-11880-preserve-symlinks
13 hours ago
fix(es/fixer): normalize for-head ident patterns (#11968) **Description:** Normalize paren remover output for parenthesized identifiers in `for-in` / `for-of` heads. The parser can represent cases like `for ((x) of y) {}` and `for ((x) in y) {}` as `ForHead::Pat(Pat::Expr(...))`. After redundant parentheses are removed, the AST could still contain `Pat::Expr(Expr::Ident(x))`, leaving an expression-shaped identifier in a pattern position. This PR normalizes that final shape to `Pat::Ident(x)` from `visit_mut_for_head`, so it matches the AST shape produced by `for (x of y) {}` / `for (x in y) {}`. It also adds AST-shape coverage for nested parentheses such as `for ((((x))) of y) {}`. Verification: - `cargo fmt --all` - `cargo test -p swc_ecma_transforms_base paren_remover_normalizes_ident_for_head_pat_exprs` - `cargo test -p swc_ecma_transforms_base` - `cargo clippy --all --all-targets -- -D warnings`
main
15 hours ago
chore: Add changeset for for-head normalization
fix/normalize-for-head
15 hours ago
fix(es/fixer): normalize for-head ident patterns
fix/normalize-for-head
1 day ago
fix(es/fixer): normalize for-head ident patterns
fix/normalize-for-head
1 day ago
test(react-compiler): add build-pass fixtures for wrapped assignment targets (#11967) **Description:** This updates the React Compiler fixture harness to separate fixture expectations into: - `compile-pass`: existing fixtures that must produce compiled output and match snapshots - `build-pass`: fixtures that only assert the transform pipeline does not panic, regardless of whether React Compiler emits a compiled program It also adds a regression fixture for wrapped assignment targets covered by #11952, including parenthesized targets, TS assertions, `satisfies`, non-null assertions, TS instantiation, update expressions, `for-in` targets, and `super` property assignment/update cases. **Related issue:** - Follow-up to #11952
main
2 days ago
chore: update fixture structure
06-26-chore/rc-test
2 days ago
Latest Branches
CodSpeed Performance Gauge
+3%
fix(es/preset-env): fix async generator env transform for Chrome 60
#11959
13 hours ago
1e3e7ea
codex/fix-async-generator-chrome-60
CodSpeed Performance Gauge
0%
fix(es/modules): resolve relative symlinked inputs from cwd
#11883
13 hours ago
4f1389d
kdy1/fix-issue-11880-preserve-symlinks
CodSpeed Performance Gauge
0%
fix(es/fixer): normalize for-head ident patterns
#11968
15 hours ago
67a87fa
fix/normalize-for-head
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs