Skip to content

Commit b8341d6

Browse files
Slashgearclaude
andcommitted
feat: enable React Compiler
Auto-memoizes components, removing the need for manual useMemo/useCallback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e264379 commit b8341d6

3 files changed

Lines changed: 36 additions & 2 deletions

File tree

next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import withMDX from '@next/mdx';
33

44
const nextConfig: NextConfig = {
55
output: 'standalone',
6+
reactCompiler: true,
67
experimental: {
78
mdxRs: true,
89
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@types/node": "24.10.11",
3030
"@types/react": "19.2.13",
3131
"@types/react-dom": "19.2.3",
32+
"babel-plugin-react-compiler": "^1.0.0",
3233
"classnames": "2.5.1",
3334
"graphql": "^16.9.0",
3435
"graphql-request": "^7.1.0",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)