From 07c9e41e6fd864913fccab36614e6fd1e9aa1fa2 Mon Sep 17 00:00:00 2001 From: Cody Olsen <81981+stipsan@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:59:18 +0100 Subject: [PATCH] fix: support react compiler runtime --- packages/hydrogen/src/vite/plugin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/hydrogen/src/vite/plugin.ts b/packages/hydrogen/src/vite/plugin.ts index 7a57363941..d5cb45adc7 100644 --- a/packages/hydrogen/src/vite/plugin.ts +++ b/packages/hydrogen/src/vite/plugin.ts @@ -62,6 +62,8 @@ export function hydrogen(pluginOptions: HydrogenPluginOptions = {}): Plugin[] { 'react', 'react/jsx-runtime', 'react/jsx-dev-runtime', + 'react/compiler-runtime', // react 19 + 'react-compiler-runtime', // react <= 18 'react-dom', 'react-dom/server', '@remix-run/server-runtime',