aboutsummaryrefslogtreecommitdiff
path: root/web/pw-frontend/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-frontend/src/main.ts')
-rw-r--r--web/pw-frontend/src/main.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/pw-frontend/src/main.ts b/web/pw-frontend/src/main.ts
new file mode 100644
index 0000000..bbe6382
--- /dev/null
+++ b/web/pw-frontend/src/main.ts
@@ -0,0 +1,8 @@
+import App from './App.svelte'
+import init_wasm_module from "planetwars-rs";
+
+init_wasm_module().then(() => {
+ const app = new App({
+ target: document.getElementById('app')
+ })
+}) \ No newline at end of file