13 lines
289 B
TypeScript
13 lines
289 B
TypeScript
|
|
import { mount } from 'svelte'
|
||
|
|
import App from './App.svelte';
|
||
|
|
|
||
|
|
const target = document.getElementById('app');
|
||
|
|
|
||
|
|
if (!target) {
|
||
|
|
throw new Error("Target element with ID 'app' not found in DOM.");
|
||
|
|
}
|
||
|
|
|
||
|
|
const app = mount(App, {
|
||
|
|
target: document.getElementById('app')!,
|
||
|
|
})
|
||
|
|
export default app;
|