Skip to content

Commit d16f9f3

Browse files
committed
feat: Add react compiler
1 parent 0f12c47 commit d16f9f3

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

app/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
extends: [
88
"eslint:recommended",
99
"plugin:react/recommended",
10+
"plugin:react-hooks/recommended",
1011
"plugin:react/jsx-runtime",
1112
"plugin:@typescript-eslint/recommended",
1213
"plugin:storybook/recommended",

app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,15 @@
9494
"@typescript-eslint/eslint-plugin": "^7.18.0",
9595
"@typescript-eslint/parser": "^7.18.0",
9696
"@vitejs/plugin-react": "^4.7.0",
97+
"babel-plugin-react-compiler": "19.1.0-rc.3",
9798
"babel-plugin-relay": "^19.0.0",
9899
"chromatic": "^11.29.0",
99100
"cpy-cli": "^5.0.0",
100101
"eslint": "^8.57.1",
101102
"eslint-plugin-deprecate": "^0.8.7",
102103
"eslint-plugin-react": "^7.37.5",
103104
"eslint-plugin-react-compiler": "19.1.0-rc.1",
104-
"eslint-plugin-react-hooks": "^5.2.0",
105+
"eslint-plugin-react-hooks": "6.0.0-rc.2",
105106
"eslint-plugin-simple-import-sort": "^10.0.0",
106107
"eslint-plugin-storybook": "^0.11.6",
107108
"graphql": "^16.11.0",

app/pnpm-lock.yaml

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

app/vite.config.mts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ import { defineConfig } from "vite";
88
import relay from "vite-plugin-relay";
99

1010
export default defineConfig(() => {
11-
const plugins = [react(), relay, lezer()];
11+
const plugins = [
12+
react({
13+
babel: {
14+
plugins: ["babel-plugin-react-compiler"],
15+
},
16+
}),
17+
relay,
18+
lezer(),
19+
];
1220
// Uncomment below to visualize the bundle size after running the build command also uncomment import { visualizer } from "rollup-plugin-visualizer";
1321
// plugins.push(visualizer());
1422
return {

0 commit comments

Comments
 (0)