Skip to content

Commit a34a9c7

Browse files
committed
Set up React Compiler
1 parent 5763c95 commit a34a9c7

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

frontend/package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@types/react": "^19.2.2",
3232
"@types/react-dom": "^19.2.2",
3333
"@vitejs/plugin-react": "^5.1.0",
34+
"babel-plugin-react-compiler": "^1.0.0",
3435
"eslint": "^9.38.0",
3536
"eslint-config-prettier": "^10.1.8",
3637
"eslint-plugin-react-hooks": "^7.0.1",

frontend/vite.config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ import { maatPlugin } from "./vite-plugin-maat";
77
// https://vite.dev/config/
88
export default defineConfig({
99
base: "/maat",
10-
plugins: [react(), tailwindcss(), maatPlugin()],
10+
plugins: [
11+
react({
12+
babel: {
13+
plugins: ["babel-plugin-react-compiler"],
14+
},
15+
}),
16+
tailwindcss(),
17+
maatPlugin(),
18+
],
1119
build: {
1220
assetsDir: "_assets",
1321
sourcemap: true,

0 commit comments

Comments
 (0)