| 1 | import './app.css'; |
| 2 | import { mount } from 'svelte'; |
| 3 | import App from './App.svelte'; |
| 4 | import { registerServiceWorker } from './lib/sw-register'; |
| 5 | import { trackKeyboardInset } from './lib/viewport'; |
| 6 | |
| 7 | const target = document.getElementById('app'); |
| 8 | if (!target) throw new Error('#app element missing'); |
| 9 | registerServiceWorker(); |
| 10 | trackKeyboardInset(); |
| 11 | const app = mount(App, { target }); |
| 12 | |
| 13 | export default app; |