add react-compiler
This commit is contained in:
Generated
+1253
-24
File diff suppressed because it is too large
Load Diff
@@ -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
@@ -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",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user