nuthatch/web/src/main.ts

10 lines
217 B
TypeScript
Raw Normal View History

import { mount } from 'svelte';
import App from './App.svelte';
const target = document.getElementById('app');
if (target === null) {
throw new Error('Missing application mount point');
}
mount(App, { target });