From 0aaef1c48bacff5a05498af201d456efeac82ac2 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Fri, 8 Jul 2022 20:19:27 +0000 Subject: [PATCH] fix: Always add @astrojs/image to vite.ssr.noExternal (#3869) * fix: always add @astrojs/image to vite.ssr.noExternal * chore: add changeset --- .changeset/stupid-cougars-warn.md | 5 +++++ packages/integrations/image/src/index.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/stupid-cougars-warn.md diff --git a/.changeset/stupid-cougars-warn.md b/.changeset/stupid-cougars-warn.md new file mode 100644 index 000000000..69ba11c06 --- /dev/null +++ b/.changeset/stupid-cougars-warn.md @@ -0,0 +1,5 @@ +--- +'@astrojs/image': patch +--- + +Bugfix: fixing a bug that broke builds in NPM workspaces diff --git a/packages/integrations/image/src/index.ts b/packages/integrations/image/src/index.ts index 32cfa7bf9..6d59e3e98 100644 --- a/packages/integrations/image/src/index.ts +++ b/packages/integrations/image/src/index.ts @@ -78,6 +78,9 @@ const createIntegration = (options: IntegrationOptions = {}): AstroIntegration = optimizeDeps: { include: ['image-size', 'sharp'], }, + ssr: { + noExternal: ['@astrojs/image'] + } }; }