1 | import * as PACKAGE_JSON from 'svelte/package.json';
|
2 |
|
3 | import { run } from './app.run';
|
4 | import App from './components/app/component.svelte';
|
5 | import { typeIt } from './shares/utils';
|
6 |
|
7 | const TYPED_PACKAGE_JSON = typeIt<{ version: string }>(PACKAGE_JSON);
|
8 |
|
9 | let app: unknown;
|
10 |
|
11 | run('Svelte', TYPED_PACKAGE_JSON.version, () => {
|
12 | const htmlDivElement: HTMLDivElement | null = document.querySelector('div#svelte');
|
13 | if (htmlDivElement instanceof HTMLDivElement) {
|
14 |
|
15 | app = new App({
|
16 | target: htmlDivElement,
|
17 | });
|
18 | }
|
19 | });
|
20 |
|
21 | export default app;
|