From 446b80bb53dee364bbf6dca30f26af7061a93d12 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Wed, 14 Sep 2022 09:11:26 -0500 Subject: [PATCH] fix built wasm location for SSG builds --- packages/integrations/image/src/index.ts | 2 +- pnpm-lock.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integrations/image/src/index.ts b/packages/integrations/image/src/index.ts index d54fd9494..445e9ee00 100644 --- a/packages/integrations/image/src/index.ts +++ b/packages/integrations/image/src/index.ts @@ -107,7 +107,7 @@ export default function integration(options: IntegrationOptions = {}): AstroInte }, 'astro:build:done': async ({ dir }) => { if (resolvedOptions.serviceEntryPoint === '@astrojs/image/squoosh') { - await copyWasmFiles(_config.output === 'static' ? dir : _buildConfig.server); + await copyWasmFiles(_config.output === "static" ? new URL('./chunks', dir) : _buildConfig.server); } if (_config.output === 'static') { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87f030978..468531b7a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8952,7 +8952,7 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 18.7.17 + '@types/node': 18.7.18 dev: true /@types/github-slugger/1.3.0: @@ -8963,7 +8963,7 @@ packages: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 18.7.17 + '@types/node': 18.7.18 dev: true /@types/glob/8.0.0: