Skip to content

[compiler] Update Babel bundled with the React Compiler plugin - #38404

Open
pwnjoshi wants to merge 1 commit into
react:mainfrom
pwnjoshi:codex/react-compiler-babel-patch
Open

pwnjoshi wants to merge 1 commit into
react:mainfrom
pwnjoshi:codex/react-compiler-babel-patch

Conversation

@pwnjoshi

@pwnjoshi pwnjoshi commented Nov 27, 2026 •

Copy link
Copy Markdown

Summary

Update the Babel dependency used by the React Compiler bundle. The published 1.0.0 artifact includes Babel 7.2.0. The updated bundle resolves Babel 7.29.13 and semver 6.3.1.

The newer Babel version rejects null plugin options. Preserve the compiler helper's existing nullable argument by passing undefined to Babel when the caller supplies null.

Fixes #38392.

How did you test this change?

  • Built the compiler plugin with Yarn and verified that the exported helper produces identical output with null and empty options.
  • Ran all three compiler Jest projects (main, classic end-to-end, and compiler end-to-end). All 17 suites, 68 tests, and 40 snapshots passed.
  • Confirmed the new regression test fails with the updated Babel dependency if the option normalization is removed.
  • Verified the resolved Babel and semver versions and ran git diff --check.

@meta-cla

meta-cla Bot commented Nov 27, 2026

Copy link
Copy Markdown

Hi @pwnjoshi!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@meta-cla

meta-cla Bot commented Nov 27, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla Bot added the CLA Signed label Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Compiler Bug]: babel-plugin-react-compiler bundles an outdated @babel/core and semver

1 participant