### Summary The Vite installation instructions for React Compiler use the old inline babel option which no longer works in [@vitejs/plugin-react@6.0.0](https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%406.0.0). ### Page https://react.dev/learn/react-compiler/installation ### Details In [@vitejs/plugin-react@6.0.0](https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%406.0.0), Babel was removed as a dependency. The documented approach no longer works: ```js // vite.config.js import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [ react({ // can't use babel option here babel: { plugins: ['babel-plugin-react-compiler'], }, }), ], }); ``` The correct setup now requires [@rolldown/plugin-babel](https://github.com/rolldown/plugins/tree/main/packages/babel), it can be used like this (this is the simplest way to use the plugin): ```js import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import babel from '@rolldown/plugin-babel' export default defineConfig({ plugins: [ react(), babel({ plugins: ['babel-plugin-react-compiler'], }), ] }) ``` The changelog recommends using [`reactCompilerPreset`](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#react-compiler) like this: ```js import { defineConfig } from 'vite' import react, { reactCompilerPreset } from '@vitejs/plugin-react' import babel from '@rolldown/plugin-babel' export default defineConfig({ plugins: [ react(), babel({ presets: [reactCompilerPreset()] }), ] }) ``` I am not sure which way is supposed to be listed in the installation page, but it needs to be updated to one of them, or maybe both should be mentioned. **References:** - [Vite Plugin React@6.0.0 changelog](https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%406.0.0) - [Vite Plugin React README](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react) - [Vite Plugin React README - React Compiler](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#react-compiler) - [rolldown/plugin-babel README](https://github.com/rolldown/plugins/tree/main/packages/babel)