Skip to content

Commit aed7bd1

Browse files
committed
Add react compiler
1 parent b5928af commit aed7bd1

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

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.

src-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"@types/react-syntax-highlighter": "^15.5.13",
8989
"@types/uuid": "^10.0.0",
9090
"@types/whatwg-mimetype": "^3.0.2",
91+
"babel-plugin-react-compiler": "^1.0.0",
9192
"@vitejs/plugin-react": "^6.0.0",
9293
"autoprefixer": "^10.4.21",
9394
"decompress": "^4.2.1",

src-web/vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ export default defineConfig(async () => {
2929
autoCodeSplitting: true,
3030
}),
3131
svgr(),
32-
react(),
32+
react({
33+
babel: {
34+
plugins: ['babel-plugin-react-compiler'],
35+
},
36+
}),
3337
topLevelAwait(),
3438
viteStaticCopy({
3539
targets: [

0 commit comments

Comments
 (0)