fix: async loading quirk in firefox js engine
This commit is contained in:
parent
37fd7543af
commit
ea9048868a
|
@ -12,5 +12,6 @@ export default async function (imports) {
|
|||
// @ts-ignore
|
||||
let wasm = await import("./wasm/bao.wasm?init");
|
||||
wasm = wasm.default || wasm;
|
||||
return (await wasm(imports)).instance;
|
||||
wasm = await wasm(imports);
|
||||
return wasm.instance;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue