mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
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…
x
Reference in New Issue
Block a user