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:
parent
59e8c71786
commit
0aaef1c48b
2 changed files with 8 additions and 0 deletions
5
.changeset/stupid-cougars-warn.md
Normal file
5
.changeset/stupid-cougars-warn.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/image': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Bugfix: fixing a bug that broke builds in NPM workspaces
|
|
@ -78,6 +78,9 @@ const createIntegration = (options: IntegrationOptions = {}): AstroIntegration =
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
include: ['image-size', 'sharp'],
|
include: ['image-size', 'sharp'],
|
||||||
},
|
},
|
||||||
|
ssr: {
|
||||||
|
noExternal: ['@astrojs/image']
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue