diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-03-16 22:54:16 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-03-16 22:54:16 -0400 |
| commit | 7c37715afd7d9572a7f1a79552a187ab2a3e4184 (patch) | |
| tree | 315cac4da4f63c1583d08b368d657ff962e95d73 | |
| parent | f64fa3b82638c8b4ec72b2e09a6341a44745ff46 (diff) | |
fix: import wasm module with absolute path
| -rw-r--r-- | src/wasm.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.ts b/src/wasm.ts index 4a8d3c8..cf819da 100644 --- a/src/wasm.ts +++ b/src/wasm.ts @@ -7,4 +7,4 @@ export const { intersperse, unzip, fft, -} = await instantiate(await WebAssembly.compileStreaming(fetch(module)), { env: {} });
\ No newline at end of file +} = await instantiate(await WebAssembly.compileStreaming(fetch('/' + module)), { env: {} });
\ No newline at end of file |
