react icon indicating copy to clipboard operation
react copied to clipboard

feat: add support for react compiler

Open joshblack opened this issue 7 months ago • 5 comments

Add support for React Compiler by following the guide in: https://react.dev/learn/react-compiler. We use the approach where we are opting out files from being processed by React Compiler (as recommended by the guide). Files that we are not processing with React Compiler are captured in our migration-status workflow.

Changelog

New

  • Add support for React Compiler through babel

Changed

  • Update config for vite in Storybook and vitest to include React Compiler settings

Removed

Rollout strategy

  • [x] Minor release

joshblack avatar Jun 16 '25 20:06 joshblack

🦋 Changeset detected

Latest commit: 0078d17e5bf2c14865f43347f08e7bf8aa906e94

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

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

changeset-bot[bot] avatar Jun 16 '25 20:06 changeset-bot[bot]

:wave: Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

github-actions[bot] avatar Jun 16 '25 20:06 github-actions[bot]

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 92.67 KB (0%)
packages/react/dist/browser.umd.js 92.54 KB (0%)

github-actions[bot] avatar Jun 16 '25 20:06 github-actions[bot]

:wave: Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/385494

primer-integration[bot] avatar Jun 20 '25 16:06 primer-integration[bot]

🟢 golden-jobs completed with status success.

primer-integration[bot] avatar Jun 23 '25 16:06 primer-integration[bot]

:wave: Hi, there are new commits since the last successful integration test. We recommend running the integration workflow once more, unless you are sure the new changes do not affect github/github. Thanks!

github-actions[bot] avatar Jun 23 '25 16:06 github-actions[bot]