always externalize astro/container

This commit is contained in:
Nate Moore 2023-02-02 08:40:45 -06:00
parent 8d00309193
commit f011ff8695

View file

@ -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],
},
};