From 6c463fc965e8f89c7a146e807e69ffb8d0686d72 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Fri, 8 Jul 2022 15:05:02 -0500 Subject: [PATCH 1/2] fix: always add @astrojs/image to vite.ssr.noExternal --- packages/integrations/image/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/integrations/image/src/index.ts b/packages/integrations/image/src/index.ts index 32cfa7bf91c3..6d59e3e98440 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'] + } }; } From 6150616b4ddbdf60c0fb3595dc6160b66ac34273 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Fri, 8 Jul 2022 15:09:19 -0500 Subject: [PATCH 2/2] chore: add changeset --- .changeset/stupid-cougars-warn.md | 5 +++++ 1 file changed, 5 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 000000000000..69ba11c06f0c --- /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