Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

main.ts

11 lines334 Bytes

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