import react, { reactCompilerPreset } from '@vitejs/plugin-react' import babel from '@rolldown/plugin-babel' import { defineConfig } from 'vite' // https://vite.dev/config/ export default defineConfig({ devtools: { // Remove this `apply` property to enable devtools for build as well apply: 'serve', }, plugins: [ react(), babel({ presets: [reactCompilerPreset()] }) ], })