fix(asset): wasm must be suffixed with ?loader

This commit is contained in:
alex8088 2023-01-13 21:32:54 +08:00
parent b3208d3dae
commit 44af7960a2

View file

@ -31,7 +31,7 @@ function resolveAsset(id: string): AssetResolved | null {
} }
} }
if (file.endsWith('.wasm')) { if (id.endsWith('.wasm?loader')) {
return { return {
type: 'wasm', type: 'wasm',
file, file,