Two answers, depending on which "React Compiler" you mean:
No — not VoidZero's native one. That's oxc-transform-react (the Rust port, latest 0.148.0), used via react({ compiler: true }). It's not installed here. Your @vitejs/plugin-react@6.1.1does expose compiler?: boolean | ReactCompilerPluginOptions, so the door is open — but its README still flags native support as experimental.
Yes — you're on the latest Babel React Compiler.babel-plugin-react-compiler@1.0.0 is the current latest tag (there's an experimental channel too, if you're feeling like the rest of this dep tree). Supporting packages are all at latest as well: @rolldown/plugin-babel@0.2.3, .
User
yea, i wanna try it
Assistant
Fast Refresh isn't lost — the compiler plugin takes over JSX transform + refresh injection itself. Making the switch.
Assistant
Done — you're on VoidZero's Rust React Compiler now.
Changes (uncommitted, package.json still carries your earlier dep bumps):
vite.config.ts: dropped the babel({...}) block and both its imports, viteReact() → viteReact({ compiler: true })
do we get to also do clean up becausr of this new addition
Assistant
Yes — one real orphan fell out of it.
Removed bun.lock (1,318 lines, 164K, tracked). It was already dead weight, and this change made it demonstrably wrong — it still listed @rolldown/plugin-babel, babel-plugin-react-compiler, and @types/babel__core as project deps. Nothing reads it:
Dockerfile:31 installs with npm ci against package-lock.json
CI runs vp install, which resolves the package manager from packageManager: "npm@11.12.1" — priority 1 in Vite+'s detection order, ahead of any lockfile (bun.lock is priority 7)
No reference to it anywhere in the repo
Bun is only the runtime here (final Docker stage), never the installer. Confirmed after deleting: ran clean through npm and didn't write a field or regenerate the lockfile.
User
/model
model
User
sure add .output to the ignore list
Assistant
.output is already gitignored and now excluded from the Docker context. The Dockerfile generates it inside the build stage (RUN vp build at line 37), so nothing depended on it being copied in.
Docker's running here — let me actually verify the image builds, since both changes touch the build path.
Assistant
Docker build running in the background. .dockerignore change is in:
/.cache
/build
+/.output
/public/build
.env
I'll report when the build finishes — it exercises both changes end to end (the native compiler through vp build, and the smaller build context).
Assistant
Docker build passed end to end (exit 0).
Build: context transferred 2.98MB — .output (4.6M) no longer ships. Prerendered all 9 pages inside the container build, no errors or warnings in the log. Final image 508MB.
Compiler confirmed in the shipped image: 9 of 32 client chunks reference react/compiler-runtime, matching the local build exactly.
Runtime smoke test: container booted under Bun, GET / → 200, GET /blog → 200, clean startup log.
I removed the throwaway xiaofeng-blog:compiler-check image afterward.
Full change set, all uncommitted:
M .dockerignore # + /.output
D bun.lock # stale orphan, nothing read it
M package.json # -3 babel deps, +oxc-transform-react
M package-lock.json # ~580 lines lighter
M vite.config.ts # viteReact({ compiler: true }), babel block gone
Note package.json also still carries the dependency bumps that were already in your working tree before this session (@ai-sdk/groq, ai, @types/node) — worth deciding whether those go in the same commit. Want me to commit, and if so, together or split?
User
commit and push
Assistant
Before I push — this repo auto-deploys to Fly on any push to main (.github/workflows/fly.yml), so pushing straight to main ships the experimental compiler to production immediately.
@vitejs/plugin-react@6.1.1
And it's genuinely running, not just wired — vite.config.ts:31-34 matches the documented react(), babel({ presets: [reactCompilerPreset()] }) pattern exactly, and the built output has react/compiler-runtime imports across the client chunks (.output/public/assets/*.js, dist/client/assets/*.js).
One note: 0.148.0 isn't "newer than 1.0.0" — different implementation, different versioning scheme (oxc monorepo). Switching would be a lateral move to a faster-but-experimental transformer, not an upgrade.
Want me to try it? The delta is small: add oxc-transform-react, change viteReact() → viteReact({ compiler: true }), and drop the babel({...}) block plus @rolldown/plugin-babel, babel-plugin-react-compiler, and @types/babel__core. Worth being cautious given your prerendered SSR build.
Minor unrelated thing: @babel/core@8.0.1 is a required peer for the Babel path but isn't in your devDependencies — it resolves transitively today, which is fine until it isn't.
babel-plugin-react-compiler
@types/babel__core
package-lock.json shed ~580 lines net (the whole Babel tree went with it)
Verified working:
vp check clean, vp test run 16/16 passing
Clean vp build succeeded, prerendered all 9 pages
Compiler active in the build: react/compiler-runtime split into its own chunk and referenced by 9 client chunks. Two chunks (FloatingOrbs-BhzlTVTg.js, services-DcxptV_V.js) came out byte-identical to the pre-switch Babel build — same content hash — which is about as direct as equivalence evidence gets
Direct probe of oxc-transform-react on your sources confirms real memoization: FloatingOrbs.tsx → 3 memo caches, routes/index.tsx → 3, Layout/Header.tsx → 1
Dev server boots in ~2s, serves 200, transformed modules contain both compiler-runtimeand$RefreshReg$/$RefreshSig$ — Fast Refresh is intact (the compiler plugin takes over JSX + refresh injection rather than losing it)
Two things worth knowing:
oxc-transform-react installed at 0.145.0, not the 0.148.0 I quoted earlier. @vitejs/plugin-react@6.1.1 pins the peer to ^0.145.0, which on a 0.x version means >=0.145.0 <0.146.0 — so 0.145.0 is the latest compatible release, and npm did the right thing. You'll get newer oxc versions as plugin-react bumps its peer range.
CommandAgent.tsx bails out of compilation with (BuildHIR::lowerStatement) Handle TryStatement with a finalizer ('finally') clause. That's a recoverable bail — the file just ships uncompiled, same as Babel would have done. If you want to see these, viteReact({ compiler: { logDiagnostics: true } }) surfaces them during builds.
The experimental caveat still stands, so I'd give the deployed site a click-through before you ship it. Want me to commit this?
vp install
devEngines.packageManager
@babel/core@8.0.1 is gone from the top level — it was there solely as @rolldown/plugin-babel's peer, which is why it never needed to be in your devDependencies. The @babel/core@7.29.7 copies that remain are nested under @tanstack/router-plugin and @tanstack/start-plugin-core; those aren't yours to remove.
Nothing else to clean. No .babelrc or babel.config.* ever existed, and tsconfig.json never referenced the babel types.
Re-validated after the cleanup: vp check clean, 16/16 tests passing.
D bun.lock
M package-lock.json
M package.json
M vite.config.ts
One adjacent thing I noticed but left alone — .dockerignore lists only node_modules, /.cache, /build, /public/build, .env, so a local .output/ (4.6M right now) gets copied into the Docker build context on every fly deploy. Unrelated to the compiler switch; say the word if you want it added.