2021-12-22 13:59:13 +01:00
|
|
|
import App from './App.svelte'
|
2021-12-23 18:22:14 +01:00
|
|
|
import init_wasm_module from "planetwars-rs";
|
2021-12-22 13:59:13 +01:00
|
|
|
|
2021-12-23 18:22:14 +01:00
|
|
|
const wasm_url = new URL("../planetwars-rs/pkg/planetwars_rs_bg.wasm", import.meta.url)
|
|
|
|
|
|
|
|
init_wasm_module(wasm_url).then(() => {
|
2021-12-22 13:59:13 +01:00
|
|
|
const app = new App({
|
|
|
|
target: document.getElementById('app')
|
|
|
|
})
|
2021-12-23 18:22:14 +01:00
|
|
|
})
|