fix: Always add @astrojs/image to vite.ssr.noExternal (#3869)

* fix: always add @astrojs/image to vite.ssr.noExternal

* chore: add changeset
This commit is contained in:
Tony Sullivan 2022-07-08 20:19:27 +00:00 committed by GitHub
parent 59e8c71786
commit 0aaef1c48b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/image': patch
---
Bugfix: fixing a bug that broke builds in NPM workspaces

View file

@ -78,6 +78,9 @@ const createIntegration = (options: IntegrationOptions = {}): AstroIntegration =
optimizeDeps: { optimizeDeps: {
include: ['image-size', 'sharp'], include: ['image-size', 'sharp'],
}, },
ssr: {
noExternal: ['@astrojs/image']
}
}; };
} }