feat: Enable React Compiler for automatic memoization
- Install babel-plugin-react-compiler@1.0.0 - Add reactCompiler: true to next.config.mjs - React 19 compiler will auto-optimize useMemo/useCallback
This commit is contained in:
@@ -5,6 +5,8 @@ const nextConfig = {
|
||||
output: 'standalone',
|
||||
// Enable source maps for Sentry stack traces in production
|
||||
productionBrowserSourceMaps: !!process.env.GLITCHTIP_DSN,
|
||||
// React Compiler for automatic memoization (React 19+)
|
||||
reactCompiler: true,
|
||||
experimental: {
|
||||
serverActions: {
|
||||
bodySizeLimit: '10mb',
|
||||
|
||||
Reference in New Issue
Block a user