Add react compiler

This commit is contained in:
Gregory Schier
2026-03-13 06:49:14 -07:00
parent b5928af1d7
commit aed7bd12ea
3 changed files with 17 additions and 1 deletions

11
package-lock.json generated
View File

@@ -5042,6 +5042,16 @@
"@babel/types": "^7.23.6"
}
},
"node_modules/babel-plugin-react-compiler": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/babel-plugin-react-compiler/-/babel-plugin-react-compiler-1.0.0.tgz",
"integrity": "sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@babel/types": "^7.26.0"
}
},
"node_modules/bail": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",
@@ -16591,6 +16601,7 @@
"@types/whatwg-mimetype": "^3.0.2",
"@vitejs/plugin-react": "^6.0.0",
"autoprefixer": "^10.4.21",
"babel-plugin-react-compiler": "^1.0.0",
"decompress": "^4.2.1",
"internal-ip": "^8.0.0",
"postcss": "^8.5.6",

View File

@@ -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",

View File

@@ -29,7 +29,11 @@ export default defineConfig(async () => {
autoCodeSplitting: true,
}),
svgr(),
react(),
react({
babel: {
plugins: ['babel-plugin-react-compiler'],
},
}),
topLevelAwait(),
viteStaticCopy({
targets: [