always externalize astro/container
This commit is contained in:
parent
8d00309193
commit
f011ff8695
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue