swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
feat(react-compiler): tighten core validation parity for upstream fixtures (#11734) ## Summary This PR continues the React Compiler SWC core-only parity work in `crates/swc_ecma_react_compiler`. ### What changed - Aligned `compile_fn` pipeline ordering with upstream behavior in [`program.rs`](crates/swc_ecma_react_compiler/src/entrypoint/program.rs): - Run `validate_locals_not_reassigned_after_render` unconditionally after `infer_mutation_aliasing_ranges`. - Replaced no-op validator with implementation: - `validate_no_capitalized_calls` - Added a conservative but working implementation for: - `validate_context_variable_lvalues` - Reduced false positives and improved message parity in: - `validate_locals_not_reassigned_after_render` - (focuses on async reassignment path in this round) - Improved hooks validation behavior: - dynamic-hook call diagnostics - optional-call handling - assignment-based hook alias tracking ## Fixture metrics Using: ```bash REACT_COMPILER_FIXTURE_CONTINUE_ON_FAIL=1 REACT_COMPILER_FIXTURE_ALLOW_FAILURE=1 cargo test -p swc_ecma_react_compiler fixture_cases_upstream -- --nocapture ``` - Prior baseline (from previous parity round): - `mismatch=844` - `missing_diag=192` - `missing_fragment=34` - Current (this branch): - `mismatch=842` - `missing_diag=167` - `missing_fragment=31` - total failed fixtures: `1040` Top mismatch clusters currently remain: - `propagate-scope-deps-hir-fork/* = 47` - `preserve-memo-validation/* = 40` - `ssa-* (top-level) = 35` ## Verification - `git submodule update --init --recursive` - `cargo check -p swc_ecma_react_compiler` - `cargo test -p swc_ecma_react_compiler fixture_cases_local -- --nocapture` - `cargo test -p swc_ecma_react_compiler fixture_cases_upstream_phase1 -- --nocapture` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` Notes: - `cargo test -p swc_ecma_react_compiler` still fails on expected upstream mismatch fixtures (non-continue mode).
main
9 hours ago
Merge branch 'main' into kdy1/react-compiler-core-validation-parity-round2
kdy1/react-compiler-core-validation-parity-round2
16 hours ago
Merge branch 'main' into kdy1/fix-11729-flow-phase1
kdy1/fix-11729-flow-phase1
16 hours ago
Merge branch 'main' into kdy1/fix-11730-derived-class-self-ref
kdy1/fix-11730-derived-class-self-ref
16 hours ago
chore: bump tar to 0.4.45 for cargo-deny
kdy1/empty-pr-fix-ci
17 hours ago
chore: trigger CI for fix
kdy1/empty-pr-fix-ci
17 hours ago
feat(react-compiler): tighten validation parity and reduce fixture drift
kdy1/react-compiler-core-validation-parity-round2
18 hours ago
fix(ecma_parser): parse key flow forms from #11729
kdy1/fix-11729-flow-phase1
18 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
feat(react-compiler): tighten core validation parity for upstream fixtures
#11734
16 hours ago
7db91bc
kdy1/react-compiler-core-validation-parity-round2
CodSpeed Performance Gauge
0%
fix(parser): parse key Flow forms from #11729 (phase 1)
#11733
16 hours ago
e4152b0
kdy1/fix-11729-flow-phase1
CodSpeed Performance Gauge
-2%
fix(minifier): drop unused derived class with self-reference in class body
#11732
16 hours ago
8e6bd3d
kdy1/fix-11730-derived-class-self-ref
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs