Skip to content

Commit 65cdfda

Browse files
feat: enable react compiler
1 parent a6df26c commit 65cdfda

File tree

3 files changed

+45
-12
lines changed

3 files changed

+45
-12
lines changed

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const withBundleAnalyzer = bundleAnalyzer({ enabled: ANALYZE_AND_PROFILE })
77
const nextConfig: NextConfig = {
88
output: "standalone",
99
transpilePackages: ["@t3-oss/env-nextjs", "@t3-oss/env-core"],
10-
experimental: { swcTraceProfiling: ANALYZE_AND_PROFILE },
10+
experimental: { reactCompiler: true, swcTraceProfiling: ANALYZE_AND_PROFILE },
1111
}
1212

1313
export default withBundleAnalyzer(nextConfig)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"@types/node": "^24.3.1",
6262
"@types/react": "^19",
6363
"@types/react-dom": "^19",
64+
"babel-plugin-react-compiler": "^1.0.0",
6465
"tailwindcss": "^4",
6566
"tw-animate-css": "^1.3.8",
6667
"typescript": "^5"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)