From 96ee00242f350b391dcc1cf4d72a442c969f565e Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 22 Dec 2021 13:59:13 +0100 Subject: add pw-frontend --- web/pw-frontend/src/main.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 web/pw-frontend/src/main.ts (limited to 'web/pw-frontend/src/main.ts') diff --git a/web/pw-frontend/src/main.ts b/web/pw-frontend/src/main.ts new file mode 100644 index 0000000..eb9e5a0 --- /dev/null +++ b/web/pw-frontend/src/main.ts @@ -0,0 +1,9 @@ +import App from './App.svelte' +import load_wasm_module from "planetwars-rs"; + +load_wasm_module().then(() => { + const app = new App({ + target: document.getElementById('app') + }) +}); + -- cgit v1.2.3