fix: need to patch our own sdk for bundling so we don't need to put the hack in directly

This commit is contained in:
Derrick Hammer 2023-07-08 04:03:54 -04:00
parent cb3421b662
commit 10170bd673
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/node_modules/@lumeweb/libportal/lib/wasm.mjs b/node_modules/@lumeweb/libportal/lib/wasm.mjs
index 32726cf..6fdc525 100644
--- a/node_modules/@lumeweb/libportal/lib/wasm.mjs
+++ b/node_modules/@lumeweb/libportal/lib/wasm.mjs
@@ -6,7 +6,7 @@ export default async function (imports) {
const wasm = await fs.readFile(wasmPath);
return (await WebAssembly.instantiate(wasm, imports)).instance;
}
- let wasm = await import("./wasm/bao.wasm");
+ let wasm = await import("./wasm/bao.wasm?init");
wasm = wasm.default || wasm;
return (await wasm(imports)).instance;
}