mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-29 20:17:05 +02:00
Add react compiler
This commit is contained in:
@@ -88,6 +88,7 @@
|
||||
"@types/react-syntax-highlighter": "^15.5.13",
|
||||
"@types/uuid": "^10.0.0",
|
||||
"@types/whatwg-mimetype": "^3.0.2",
|
||||
"babel-plugin-react-compiler": "^1.0.0",
|
||||
"@vitejs/plugin-react": "^6.0.0",
|
||||
"autoprefixer": "^10.4.21",
|
||||
"decompress": "^4.2.1",
|
||||
|
||||
@@ -29,7 +29,11 @@ export default defineConfig(async () => {
|
||||
autoCodeSplitting: true,
|
||||
}),
|
||||
svgr(),
|
||||
react(),
|
||||
react({
|
||||
babel: {
|
||||
plugins: ['babel-plugin-react-compiler'],
|
||||
},
|
||||
}),
|
||||
topLevelAwait(),
|
||||
viteStaticCopy({
|
||||
targets: [
|
||||
|
||||
Reference in New Issue
Block a user