summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/tame-keys-kiss.md5
-rw-r--r--packages/integrations/image/package.json6
-rw-r--r--pnpm-lock.yaml2
3 files changed, 9 insertions, 4 deletions
diff --git a/.changeset/tame-keys-kiss.md b/.changeset/tame-keys-kiss.md
new file mode 100644
index 000000000..51ee6f3ef
--- /dev/null
+++ b/.changeset/tame-keys-kiss.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/image': patch
+---
+
+Fixes a bug where the `web-streams-polyfill` dependency would not be installed with the `--production` flag
diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json
index d43da956b..dcd2120ab 100644
--- a/packages/integrations/image/package.json
+++ b/packages/integrations/image/package.json
@@ -48,7 +48,8 @@
"kleur": "^4.1.5",
"magic-string": "^0.25.9",
"mime": "^3.0.0",
- "slash": "^4.0.0"
+ "slash": "^4.0.0",
+ "web-streams-polyfill": "^3.2.1"
},
"devDependencies": {
"@types/http-cache-semantics": "^4.0.1",
@@ -61,8 +62,7 @@
"mocha": "^9.2.2",
"rollup-plugin-copy": "^3.4.0",
"sharp": "^0.31.0",
- "vite": "^3.0.0",
- "web-streams-polyfill": "^3.2.1"
+ "vite": "^3.0.0"
},
"peerDependencies": {
"sharp": ">=0.31.0"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 033ff238a..42ccf88dd 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2586,6 +2586,7 @@ importers:
magic-string: 0.25.9
mime: 3.0.0
slash: 4.0.0
+ web-streams-polyfill: 3.2.1
devDependencies:
'@types/http-cache-semantics': 4.0.1
'@types/mime': 2.0.3
@@ -2598,7 +2599,6 @@ importers:
rollup-plugin-copy: 3.4.0
sharp: 0.31.1
vite: 3.2.2
- web-streams-polyfill: 3.2.1
packages/integrations/image/test/fixtures/background-color-image:
specifiers: