From de8dafcd92fc1a32724ae0e2a0a199fe4eb42f5d Mon Sep 17 00:00:00 2001 From: Ichsan Kurniawan Date: Thu, 8 Oct 2026 17:36:42 +0700 Subject: [PATCH] Enable React Compiler in Next config This change enables the React Compiler in the Next.js configuration and adds the required Babel plugin dependency. The goal is to allow the app to use React Compiler optimizations during builds and improve rendering performance. --- next.config.ts | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/next.config.ts b/next.config.ts index a080e49..5dcf0f0 100644 --- a/next.config.ts +++ b/next.config.ts @@ -23,6 +23,7 @@ const nextConfig: NextConfig = { ], qualities: [50, 65, 70, 75, 80, 85, 90, 100], }, + reactCompiler: true, reactStrictMode: false }; diff --git a/package.json b/package.json index c31d804..93ceb9f 100644 --- a/package.json +++ b/package.json @@ -85,6 +85,7 @@ "@types/react-dom": "^19", "@types/react-lazy-load-image-component": "^1.6.5", "@types/react-signature-canvas": "^1.0.7", + "babel-plugin-react-compiler": "^1.0.0", "baseline-browser-mapping": "^2.10.0", "eslint": "^9", "eslint-config-next": "^16.0.10",