fix(asset): wasm must be suffixed with ?loader
This commit is contained in:
parent
b3208d3dae
commit
44af7960a2
|
@ -31,7 +31,7 @@ function resolveAsset(id: string): AssetResolved | null {
|
|||
}
|
||||
}
|
||||
|
||||
if (file.endsWith('.wasm')) {
|
||||
if (id.endsWith('.wasm?loader')) {
|
||||
return {
|
||||
type: 'wasm',
|
||||
file,
|
||||
|
|
Loading…
Reference in a new issue