From 24fd258c573b1c0bd6bed64ab05c343e05cb475a Mon Sep 17 00:00:00 2001 From: Samuel Date: Fri, 8 Nov 2024 17:37:58 +0100 Subject: [PATCH] add react-compiler --- next.config.mjs | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index dee75a64..e581e6ee 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -4,6 +4,7 @@ const nextConfig = { reactStrictMode: true, experimental: { serverActions: true, + reactCompiler: true, }, images: { remotePatterns: [ diff --git a/package.json b/package.json index 1e828f3a..2efe79c0 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@supabase/ssr": "^0.5.1", "@supabase/supabase-js": "^2.46.1", "@tanstack/react-query": "^5.59.19", + "babel-plugin-react-compiler": "19.0.0-beta-63b359f-20241101", "deck.gl": "^9.0.34", "leaflet": "^1.9.4", "lucide-react": "^0.454.0",