Vite natively integrates the Rust React Compiler

Vite natively integrates the Rust React Compiler

Compiling React with Rust is now native in Vite, cutting compilation steps down by nearly 18×.

Vite added experimental native React Compiler support in @vitejs/plugin-react v6.1.0 using the oxc toolchain. In one 1,036-file codebase, the compiler portion dropped from 14.3 seconds under Babel to 0.81 seconds, bringing total build time down from 22.1s to 9.3s.

Why it matters: Faster builds lower CI costs and stop you from losing focus while waiting on pipelines. The Rust rewrite also fixes old Babel compiler headaches, including try/catch conditional logic and computed property keys.

Here's the gist: install oxc-transform-react and add { compiler: true } to your Vite React plugin config. If you run React Router in framework mode, drop in @acusti/vite-plugin-react-compiler to get the same build boost.

Babel had a great run, but Rust is taking over the JS build stack.

Sources