From 04bd9636a3fc70f5d23b5e61add7fb3d18604d27 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Jul 2023 04:29:37 -0400 Subject: [PATCH] fix: add ?init query string for vite bundler --- src/wasm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasm.ts b/src/wasm.ts index 4ae00cf..9a4c430 100644 --- a/src/wasm.ts +++ b/src/wasm.ts @@ -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; }