Repository navigation
Upgrade @astrojs/react to 7 - #471
Merged
Merged
Conversation
7.0 moves the integration to @vitejs/plugin-react 6, which uses Oxc instead of Babel for JSX and Fast Refresh. This project passes no babel option, so no config change is needed. The lockfile drops Babel and the duplicate copy of Vite and Rolldown that 6.x pulled in.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #469. Merge #469 first; GitHub then retargets this PR to
main.@astrojs/react7.0 moves the integration to@vitejs/plugin-react6, which uses Oxc instead of Babel for JSX and Fast Refresh, and removes thebabelintegration option.astro.configcallsreact()with no options, so nothing else needs to change.oxc-transform-reactis only needed for the opt-in React Compiler, so it isn't installed.The lockfile gets smaller: Babel and the second copy of Vite and Rolldown that 6.x pulled in are gone.
Checks run locally
astro check+ build, web tests with coverage, and worker typecheck + tests.astro preview. Theclient:onlyReact navbar hydrated and the theme toggle worked. The only console errors were/api/me404s, which are expected without the Go API running.