add react-compiler

This commit is contained in:
NilsUeter
2025-04-05 19:08:30 +02:00
parent b07aa32f17
commit 4424356dbc
3 changed files with 1262 additions and 25 deletions
+1253 -24
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -20,6 +20,8 @@
"@types/react-dom": "^18.3.5", "@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4", "@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"babel-plugin-react-compiler": "^19.0.0-beta-e993439-20250328",
"eslint-plugin-react-compiler": "^19.0.0-beta-e993439-20250328",
"postcss": "^8.5.3", "postcss": "^8.5.3",
"prettier": "^3.5.2", "prettier": "^3.5.2",
"prettier-plugin-tailwindcss": "^0.6.11", "prettier-plugin-tailwindcss": "^0.6.11",
+7 -1
View File
@@ -3,6 +3,12 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [
react({
babel: {
plugins: [["babel-plugin-react-compiler"]],
},
}),
],
base: "/fancyscribe", base: "/fancyscribe",
}); });