From c63738e17df4d5bfff2049a6d1c445c609c2189e Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Thu, 14 Mar 2024 19:29:29 -0400 Subject: fix: fix lots of type errors --- src/wasm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm.ts') diff --git a/src/wasm.ts b/src/wasm.ts index cf7b552..4a8d3c8 100644 --- a/src/wasm.ts +++ b/src/wasm.ts @@ -1,5 +1,5 @@ import { instantiate } from '../build/out.js'; -import url from '../build/out.wasm'; +import module from '../build/out.wasm'; export const { memory, mathS, mathV, mathSS, mathSV, mathVS, mathVV, @@ -7,4 +7,4 @@ export const { intersperse, unzip, fft, -} = await instantiate(await WebAssembly.compileStreaming(fetch(url)), {}); \ No newline at end of file +} = await instantiate(await WebAssembly.compileStreaming(fetch(module)), { env: {} }); \ No newline at end of file -- cgit v1.2.3