From f011ff86956050958e29da3c4816ad621ff1a5cf Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 2 Feb 2023 08:40:45 -0600 Subject: [PATCH] always externalize astro/container --- packages/astro/src/core/create-vite.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index 9708466c9..7d6522ae1 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -153,7 +153,7 @@ export async function createVite( // shiki is imported by Code.astro, which is no-externalized (processed by Vite). // However, shiki's deps are in CJS and trips up Vite's dev SSR transform, externalize // shiki to load it with node instead. - external: [...(mode === 'dev' ? ['shiki'] : []), ...astroPkgsConfig.ssr.external], + external: [...(mode === 'dev' ? ['shiki'] : []), 'astro/container', ...astroPkgsConfig.ssr.external], }, };