fix: add ?init query string for vite bundler

This commit is contained in:
Derrick Hammer 2023-07-08 04:29:37 -04:00
parent 848f3dff9d
commit 04bd9636a3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}