refactor(react-compiler): remove compiler impl and keep fast_check#11753
refactor(react-compiler): remove compiler impl and keep fast_check#11753
Conversation
🦋 Changeset detectedLatest commit: e399ef1 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR removes the in-crate React Compiler implementation from swc_ecma_react_compiler, leaving only the fast_check::is_required API and cleaning up related fixtures and CI handling.
Changes:
- Removed compiler implementation modules (entrypoint, HIR, inference, optimization, SSA, transform, validation, utils) and their public re-exports from
swc_ecma_react_compiler. - Deleted React Compiler fixture assets (inputs/outputs/errors) under
crates/swc_ecma_react_compiler/tests/fixtures/**. - Simplified CI by removing the
swc_ecma_react_compilerspecial-case test step and env var.
Reviewed changes
Copilot reviewed 297 out of 3504 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| crates/swc_ecma_react_compiler/src/lib.rs | Removes compiler modules and exports, retaining only fast_check. |
| crates/swc_ecma_react_compiler/Cargo.toml | Drops compiler-related dependencies/dev-dependencies and adjusts remaining dev deps. |
| .github/workflows/CI.yml | Removes swc_ecma_react_compiler special-case test step/env var and runs it like other crates. |
| crates/swc_ecma_react_compiler/src/validation/** | Deletes validation infrastructure previously used by the compiler implementation. |
| crates/swc_ecma_react_compiler/src/utils/mod.rs | Deletes directive/helper utilities previously used by the compiler implementation. |
| crates/swc_ecma_react_compiler/src/transform/mod.rs | Deletes compiler transform utilities previously used for AST/HIR processing. |
| crates/swc_ecma_react_compiler/src/ssa/** | Deletes SSA pipeline placeholders previously used by the compiler implementation. |
| crates/swc_ecma_react_compiler/src/optimization/** | Deletes optimization pipeline placeholders previously used by the compiler implementation. |
| crates/swc_ecma_react_compiler/src/inference/** | Deletes inference pipeline placeholders previously used by the compiler implementation. |
| crates/swc_ecma_react_compiler/src/hir/mod.rs | Deletes HIR definition/lowering previously used by the compiler implementation. |
| crates/swc_ecma_react_compiler/src/entrypoint/mod.rs | Deletes compiler entrypoint module wiring. |
| crates/swc_ecma_react_compiler/tests/fixtures/** | Removes React Compiler test fixtures (inputs/outputs/errors). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Binary Sizes
Commit: e6d35ee |
This comment has been minimized.
This comment has been minimized.
PR Review: refactor(react-compiler): remove compiler impl and keep fast_checkSummaryClean removal of the in-house React Compiler implementation (~122K lines deleted) in preparation for migrating to the official Rust React Compiler (#11751). Only Code Quality
Potential Concerns
Test Coverage
SecurityNo concerns — this is purely a deletion of code. PerformanceNo concerns — the remaining VerdictLooks good. This is a straightforward, well-scoped deletion that correctly preserves the only actively-used API ( 🤖 Generated with Claude Code |
Summary
swc_ecma_react_compilerswc_ecma_react_compiler::fast_check::is_requiredAPI changes
fast_check::is_requiredreact_compiler,compile_program,compile_fn,CompilerPass,CompileReport, option/error/codegen re-exportsVerification
git submodule update --init --recursivecargo test -p swc_ecma_react_compilercargo check -p binding_react_compiler_nodecargo check -p swc_core --features ecma_react_compilercargo fmt --allcargo clippy --all --all-targets -- -D warningsRelated to #11751.