diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index bc6e58a9c..41eac3452 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -96,6 +96,9 @@ export async function createVite( ], conditions: ['astro'], }, + ssr: { + noExternal: ['astro', 'astro/components'], + } }; // Merge configs: we merge vite configuration objects together in the following order,