Skip to content

Commit

Permalink
client: use react 18 + beta react-compiler (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop authored Nov 7, 2024
1 parent 06b29ff commit 5d194bb
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 303 deletions.
7 changes: 4 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"date-fns": "^4.1.0",
"node-fetch": "^3.3.1",
"prop-types": "^15.7.2",
"react": "19.0.0-rc-f65ac7bd-20240826",
"react-dom": "19.0.0-rc-f65ac7bd-20240826",
"react": "^18.3.1",
"react-compiler-runtime": "19.0.0-beta-63b359f-20241101",
"react-dom": "^18.3.1",
"react-markdown": "^9.0.0",
"spinners-react": "^1.0.7",
"strip-indent": "^4.0.0",
Expand All @@ -27,7 +28,7 @@
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"babel-plugin-react-compiler": "0.0.0-experimental-9e9694c-20240826",
"babel-plugin-react-compiler": "19.0.0-beta-63b359f-20241101",
"typescript-plugin-css-modules": "^5.1.0",
"vite": "^5.3.2",
"vite-css-modules": "^1.5.2"
Expand Down
4 changes: 3 additions & 1 deletion client/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export default defineConfig({
patchCssModules(),
react({
babel: {
plugins: ['react-compiler'],
plugins: [
['react-compiler', { target: '18' }],
],
},
}),
],
Expand Down
Loading

0 comments on commit 5d194bb

Please sign in to comment.