fix: add ?init query string for vite bundler
This commit is contained in:
parent
848f3dff9d
commit
04bd9636a3
|
@ -10,7 +10,7 @@ export default async function (imports) {
|
|||
}
|
||||
|
||||
// @ts-ignore
|
||||
let wasm = await import("./wasm/bao.wasm");
|
||||
let wasm = await import("./wasm/bao.wasm?init");
|
||||
wasm = wasm.default || wasm;
|
||||
return (await wasm(imports)).instance;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue