diff --git a/packages/integrations/preact/src/index.ts b/packages/integrations/preact/src/index.ts index 79eea897c154..153b9e1c35eb 100644 --- a/packages/integrations/preact/src/index.ts +++ b/packages/integrations/preact/src/index.ts @@ -53,7 +53,7 @@ export default function ({include, exclude, compat}: Options = {}): AstroIntegra dedupe: ['preact/compat', 'preact'], }; // noExternal React entrypoints to be bundled, resolved, and aliased by Vite - viteConfig.ssr = {f + viteConfig.ssr = { noExternal: ['react', 'react-dom', 'react-dom/test-utils', 'react/jsx-runtime'], }; }