Skip to content

Commit

Permalink
fix: Always add @astrojs/image to vite.ssr.noExternal (#3869)
Browse files Browse the repository at this point in the history
* fix: always add @astrojs/image to vite.ssr.noExternal

* chore: add changeset
  • Loading branch information
Tony Sullivan committed Jul 8, 2022
1 parent 59e8c71 commit 0aaef1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-cougars-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/image': patch
---

Bugfix: fixing a bug that broke builds in NPM workspaces
3 changes: 3 additions & 0 deletions packages/integrations/image/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ const createIntegration = (options: IntegrationOptions = {}): AstroIntegration =
optimizeDeps: {
include: ['image-size', 'sharp'],
},
ssr: {
noExternal: ['@astrojs/image']
}
};
}

Expand Down

0 comments on commit 0aaef1c

Please sign in to comment.