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

main.ts

12 lines436 Bytes

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