Open History to see the last commit
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)