Skip to content

React Compiler detection misses reactCompilerPreset with @rolldown/plugin-babel #1468

Description

@liildev

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()],
    }),
  ],
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions