feat: add support for react compiler
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
🦋 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
: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!
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%) |
:wave: Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/385494
🟢 golden-jobs completed with status success.
: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!