From fb5e0c42fc05b83cf9e43b1cb1acefcc66cba187 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Mon, 31 Oct 2022 10:43:02 -0500 Subject: [PATCH 1/2] fix: web-streams-polyfill should be included as a prod dependency --- .changeset/tame-keys-kiss.md | 5 +++++ packages/integrations/image/package.json | 6 +++--- pnpm-lock.yaml | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/tame-keys-kiss.md diff --git a/.changeset/tame-keys-kiss.md b/.changeset/tame-keys-kiss.md new file mode 100644 index 000000000000..51ee6f3ef1b0 --- /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 d43da956b361..dcd2120abd5e 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 ae0e852d7f24..fd738911fb54 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.0 - web-streams-polyfill: 3.2.1 packages/integrations/image/test/fixtures/background-color-image: specifiers: From d16604f37c007016f9327012c9b871a1e05b9318 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Mon, 31 Oct 2022 14:17:42 -0500 Subject: [PATCH 2/2] chore: missed a lockfile change in the merge --- pnpm-lock.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fefc4ebd9376..42ccf88dde9a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2599,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: