From 68b6209db472446a1f9916a8eefc87c819453dc8 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Thu, 9 Mar 2023 15:23:53 -0500 Subject: [PATCH] leave image-size alone --- packages/astro/src/core/create-vite.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index 7bd4d9db6a8d..f4316bc2c110 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -57,7 +57,6 @@ const ONLY_DEV_EXTERNAL = [ 'shiki', // Imported by `@astrojs/prism` which exposes `` that is processed by Vite 'prismjs/components/index.js', - 'image-size', ]; /** Return a common starting point for all Vite actions */ @@ -173,7 +172,7 @@ export async function createVite( }, ssr: { noExternal: [...ALWAYS_NOEXTERNAL, ...astroPkgsConfig.ssr.noExternal], - external: [...(mode === 'dev' ? ONLY_DEV_EXTERNAL : ['image-size']), ...astroPkgsConfig.ssr.external], + external: [...(mode === 'dev' ? ONLY_DEV_EXTERNAL : []), ...astroPkgsConfig.ssr.external], }, };