fix built wasm location for SSG builds

This commit is contained in:
Tony Sullivan 2022-09-14 09:11:26 -05:00
parent 9430d38b46
commit 446b80bb53
2 changed files with 3 additions and 3 deletions

View file

@ -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') {

View file

@ -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: