Skip to content

Commit a697114

Browse files
committed
Enable React Compiler across all Next.js apps
1 parent db20bd1 commit a697114

File tree

11 files changed

+77
-42
lines changed

11 files changed

+77
-42
lines changed

apps/dashboard/next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const baseNextConfig: NextConfig = {
124124
webpackMemoryOptimizations: true,
125125
serverSourceMaps: false,
126126
taint: true,
127+
reactCompiler: true,
127128
},
128129
serverExternalPackages: ["pino-pretty"],
129130
async headers() {

apps/dashboard/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
"@typescript-eslint/eslint-plugin": "7.14.1",
131131
"@typescript-eslint/parser": "7.14.1",
132132
"autoprefixer": "^10.4.21",
133+
"babel-plugin-react-compiler": "19.1.0-rc.2",
133134
"checkly": "5.6.0",
134135
"eslint": "8.57.0",
135136
"eslint-config-biome": "1.9.4",

apps/login/next.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
44
/* config options here */
5+
experimental: {
6+
reactCompiler: true,
7+
},
58
};
69

710
export default nextConfig;

apps/login/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@types/node": "22.14.1",
4141
"@types/react": "19.1.8",
4242
"@types/react-dom": "19.1.6",
43+
"babel-plugin-react-compiler": "19.1.0-rc.2",
4344
"eslint": "9.24.0",
4445
"eslint-config-next": "15.3.3",
4546
"postcss": "8.5.5",

apps/playground-web/next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const nextConfig = {
4545
webpackBuildWorker: true,
4646
webpackMemoryOptimizations: true,
4747
serverSourceMaps: false,
48+
reactCompiler: true,
4849
},
4950
async headers() {
5051
return [

apps/playground-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@types/react": "19.1.8",
5555
"@types/react-dom": "19.1.6",
5656
"autoprefixer": "^10.4.21",
57+
"babel-plugin-react-compiler": "19.1.0-rc.2",
5758
"eslint": "8.57.0",
5859
"eslint-config-biome": "1.9.4",
5960
"eslint-config-next": "15.3.3",

apps/portal/next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const nextConfig = {
5555
webpackBuildWorker: true,
5656
webpackMemoryOptimizations: true,
5757
serverSourceMaps: false,
58+
reactCompiler: true,
5859
},
5960
pageExtensions: ["mdx", "tsx", "ts"],
6061
redirects,

apps/portal/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"@typescript-eslint/eslint-plugin": "7.14.1",
7373
"@typescript-eslint/parser": "7.14.1",
7474
"autoprefixer": "^10.4.21",
75+
"babel-plugin-react-compiler": "19.1.0-rc.2",
7576
"eslint": "8.57.0",
7677
"eslint-config-biome": "1.9.4",
7778
"eslint-plugin-mdx": "3.4.2",

apps/wallet-ui/next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const nextConfig = {
5454
webpackBuildWorker: true,
5555
webpackMemoryOptimizations: true,
5656
serverSourceMaps: false,
57+
reactCompiler: true,
5758
},
5859
webpack: (config) => {
5960
config.externals.push("pino-pretty", "lokijs", "encoding");

apps/wallet-ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@types/react-dom": "19.1.6",
4141
"@typescript-eslint/eslint-plugin": "7.14.1",
4242
"@typescript-eslint/parser": "7.14.1",
43+
"babel-plugin-react-compiler": "19.1.0-rc.2",
4344
"eslint": "8.57.0",
4445
"eslint-config-biome": "1.9.4",
4546
"eslint-plugin-react-compiler": "19.1.0-rc.2",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)