← 输入框|github.com|刷新
Skip to content

Upgrade @astrojs/react to 7 - #471

Merged
j127 merged 1 commit into
mainfrom
claude/astrojs-react-7
Nov 23, 2026
Merged

j127 merged 1 commit into
mainfrom
claude/astrojs-react-7

Conversation

@j127

@j127 j127 commented Nov 23, 2026

Copy link
Copy Markdown
Member

Stacked on #469. Merge #469 first; GitHub then retargets this PR to main.

@astrojs/react 7.0 moves the integration to @vitejs/plugin-react 6, which uses Oxc instead of Babel for JSX and Fast Refresh, and removes the babel integration option. astro.config calls react() with no options, so nothing else needs to change. oxc-transform-react is 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

  • ESLint, Stylelint, astro check + build, web tests with coverage, and worker typecheck + tests.
  • Served the build with astro preview. The client:only React navbar hydrated and the theme toggle worked. The only console errors were /api/me 404s, which are expected without the Go API running.

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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 552c0e7 and c36844a.

Files ignored due to path filters: 1

  • bun.lock is excluded by !**/*.lock
Files selected for processing: 1

  • apps/web/package.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@j127
j127 changed the base branch from claude/dependency-updates-570d50 to main November 23, 2026 03:14
@j127
j127 merged commit ea545bc into main Nov 23, 2026
2 checks passed
@j127
j127 deleted the claude/astrojs-react-7 branch November 23, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant