initial commit
This commit is contained in:
commit
3751b8ddb0
23 changed files with 2048 additions and 0 deletions
14
src/main.ts
Normal file
14
src/main.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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;
|
||||
Loading…
Reference in a new issue