Revert "fix built wasm location for SSG builds"

This reverts commit 446b80bb53.
This commit is contained in:
Tony Sullivan 2022-09-14 09:49:37 -05:00
parent 0d6bfde2e6
commit 5e269d1eea
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" ? new URL('./chunks', dir) : _buildConfig.server);
await copyWasmFiles(_config.output === 'static' ? dir : _buildConfig.server);
}
if (_config.output === 'static') {

View file

@ -8940,7 +8940,7 @@ packages:
/@types/fs-extra/8.1.2:
resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==}
dependencies:
'@types/node': 18.7.18
'@types/node': 18.7.17
dev: true
/@types/github-slugger/1.3.0:
@ -8951,7 +8951,7 @@ packages:
resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==}
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 18.7.18
'@types/node': 18.7.17
dev: true
/@types/glob/8.0.0: