mirror of
https://github.com/LukeHagar/electron-vite.git
synced 2025-12-06 12:27:44 +00:00
fix(asset): wasm must be suffixed with ?loader
This commit is contained in:
@@ -31,7 +31,7 @@ function resolveAsset(id: string): AssetResolved | null {
|
||||
}
|
||||
}
|
||||
|
||||
if (file.endsWith('.wasm')) {
|
||||
if (id.endsWith('.wasm?loader')) {
|
||||
return {
|
||||
type: 'wasm',
|
||||
file,
|
||||
|
||||
Reference in New Issue
Block a user