16 lines
398 B
TypeScript
16 lines
398 B
TypeScript
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()] })
|
|
],
|
|
})
|