Open History to see the last commit
1import { mount } from 'svelte'
2import './index.css'
3import App from './App.svelte'
4β
5const appRoot = document.querySelector('#app')
6if (!appRoot) throw new Error('Missing #app element')
7β
8const shadowRoot = appRoot.attachShadow({ mode: 'open' })
9const app = mount(App, { target: shadowRoot, props: { shadowRoot } })
10β
11export default app