mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-24 12:33:34 +00:00
chore: update to react 19 and add react compiler
This commit is contained in:
@@ -3,9 +3,19 @@ import * as path from 'path'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
const ReactCompilerConfig = {
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [
|
||||
react({
|
||||
babel: {
|
||||
plugins: [['babel-plugin-react-compiler', ReactCompilerConfig]],
|
||||
},
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user