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

main.ts

13 lines437 Bytes

1import { createApp } from 'vue'
2import { VueQueryPlugin } from '@tanstack/vue-query'
3import './index.css'
4​
5import App from './App.vue'
6​
7const appRoot = document.getElementById('app')
8if (!appRoot) throw new Error('Missing #app element')
9​
10const shadowRoot = appRoot.attachShadow({ mode: 'open' })
11const container = shadowRoot.appendChild(document.createElement('div'))
12​
13createApp(App, { shadowRoot }).use(VueQueryPlugin).mount(container)