aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/Visualizer.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-server/src/lib/components/Visualizer.svelte')
-rw-r--r--web/pw-server/src/lib/components/Visualizer.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/pw-server/src/lib/components/Visualizer.svelte b/web/pw-server/src/lib/components/Visualizer.svelte
index 4fe8ab4..eac1c52 100644
--- a/web/pw-server/src/lib/components/Visualizer.svelte
+++ b/web/pw-server/src/lib/components/Visualizer.svelte
@@ -2,6 +2,7 @@
import { onDestroy, onMount } from "svelte";
import * as visualizer from "pw-visualizer";
import init_wasm_module from "planetwars-rs";
+ import planetwars_wasm_module from "planetwars-rs/planetwars_rs_bg.wasm?url";
import { PLAYER_COLORS } from "$lib/constants";
export let matchLog = null;
@@ -10,7 +11,7 @@
let initialized = false;
onMount(async () => {
- await init_wasm_module();
+ await init_wasm_module(planetwars_wasm_module);
visualizer.init();
initialized = true;