remora/web/src/main.ts

11 lines
226 B
TypeScript
Raw Normal View History

import { mount } from 'svelte'
import App from './App.svelte'
const target = document.querySelector<HTMLElement>('#app')
if (target === null) {
throw new Error('missing application mount point')
}
mount(App, { target })