Skip to content

Commit

Permalink
fix: optimise perf with react compiler (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan authored Oct 31, 2024
1 parent a60cd8f commit 26417b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions package.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ export default defineConfig({
noImplicitBrowsersList: 'off',
},
tsconfig: 'tsconfig.dist.json',
babel: {reactCompiler: true},
reactCompilerOptions: {target: '18'},
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"npm-run-all2": "^5.0.2",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-compiler-runtime": "beta",
"react-compiler-runtime": "19.0.0-beta-6fc168f-20241025",
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"refractor": "^4.8.1",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26417b1

Please sign in to comment.