diagram-gost/src/main.ts
2025-01-13 15:00:11 +03:00

14 lines
No EOL
347 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;