Skip to content

Commit ebe6e88

Browse files
committed
chore: add babel-plugin-react-compiler and enable experimental reactCompiler option in Next.js config for multiple apps
1 parent 1e64cc0 commit ebe6e88

File tree

8 files changed

+69
-28
lines changed

8 files changed

+69
-28
lines changed

apps/torus-allocator/next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/** @type {import("next").NextConfig} */
22
const config = {
33
reactStrictMode: true,
4+
5+
experimental: {
6+
reactCompiler: true,
7+
},
8+
49
/** Enables hot reloading for local packages without a build step */
510
transpilePackages: [
611
"@torus-ts/api",

apps/torus-bridge/next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const config = {
1717

1818
reactStrictMode: true,
1919

20+
experimental: {
21+
reactCompiler: true,
22+
},
23+
2024
/** We already do linting and typechecking as separate tasks in CI */
2125
eslint: { ignoreDuringBuilds: true },
2226
typescript: { ignoreBuildErrors: true },

apps/torus-governance/next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/** @type {import("next").NextConfig} */
22
const config = {
33
reactStrictMode: true,
4+
5+
experimental: {
6+
reactCompiler: true,
7+
},
8+
49
/** Enables hot reloading for local packages without a build step */
510
transpilePackages: [
611
"@torus-ts/api",

apps/torus-page/next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/** @type {import("next").NextConfig} */
22
const config = {
33
reactStrictMode: true,
4+
5+
experimental: {
6+
reactCompiler: true,
7+
},
8+
49
/** Enables hot reloading for local packages without a build step */
510
transpilePackages: ["@torus-ts/ui", "@torus-ts/env-validation"],
611

apps/torus-portal/next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/** @type {import("next").NextConfig} */
22
const config = {
33
reactStrictMode: true,
4+
5+
experimental: {
6+
reactCompiler: true,
7+
},
8+
49
/** Enables hot reloading for local packages without a build step */
510
transpilePackages: [
611
"@torus-ts/api",

apps/torus-wallet/next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
/** @type {import("next").NextConfig} */
66
const config = {
77
reactStrictMode: true,
8+
9+
experimental: {
10+
reactCompiler: true,
11+
},
12+
813
/** Enables hot reloading for local packages without a build step */
914
transpilePackages: [
1015
"@torus-ts/api",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"devDependencies": {
99
"@changesets/cli": "^2.29.5",
1010
"@torus-ts/prettier-config": "workspace:*",
11+
"babel-plugin-react-compiler": "19.1.0-rc.3",
1112
"prettier": "catalog:",
1213
"turbo": "^2.3.3",
1314
"typescript": "catalog:"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)