aboutsummaryrefslogtreecommitdiff
path: root/web/pw-frontend/src
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2021-12-23 19:25:56 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2021-12-23 19:25:56 +0100
commitd0af8d3bbff506d4f4caf03750c3b85c69c4f168 (patch)
tree317b9c2033af3f631dfeb12e064b43d0548e09c8 /web/pw-frontend/src
parentc26f72890f934d654742328702661f0bd73b7582 (diff)
downloadplanetwars.dev-d0af8d3bbff506d4f4caf03750c3b85c69c4f168.tar.xz
planetwars.dev-d0af8d3bbff506d4f4caf03750c3b85c69c4f168.zip
use vite-plugin-wasm-pack
Diffstat (limited to 'web/pw-frontend/src')
-rw-r--r--web/pw-frontend/src/main.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/pw-frontend/src/main.ts b/web/pw-frontend/src/main.ts
index b9ec466..bbe6382 100644
--- a/web/pw-frontend/src/main.ts
+++ b/web/pw-frontend/src/main.ts
@@ -1,9 +1,7 @@
import App from './App.svelte'
import init_wasm_module from "planetwars-rs";
-const wasm_url = new URL("../planetwars-rs/pkg/planetwars_rs_bg.wasm", import.meta.url)
-
-init_wasm_module(wasm_url).then(() => {
+init_wasm_module().then(() => {
const app = new App({
target: document.getElementById('app')
})