React Doctor 0.9.2 reports hasReactCompiler: false for a Vite project
using the official React Compiler configuration with
@rolldown/plugin-babel and reactCompilerPreset().
Versions
- react-doctor: 0.9.2
- react: 19.2.3
- vite: ^8.1.0
- @vitejs/plugin-react: ^6.0.1
- @rolldown/plugin-babel: ^0.2.3
- babel-plugin-react-compiler: ^1.0.0
Minimal configuration
import babel from '@rolldown/plugin-babel';
import react, { reactCompilerPreset } from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
react(),
babel({
presets: [reactCompilerPreset()],
}),
],
});
React Doctor 0.9.2 reports
hasReactCompiler: falsefor a Vite projectusing the official React Compiler configuration with
@rolldown/plugin-babelandreactCompilerPreset().Versions
Minimal configuration