main.ts 511 B

1234567891011121314
  1. import { createVaporApp, vaporInteropPlugin } from 'vue'
  2. import App from './App.vue'
  3. import '../../../packages/vue/__tests__/e2e/style.css'
  4. // oxlint-disable-next-line no-restricted-globals
  5. const params = new URLSearchParams(window.location.search)
  6. const caseId = params.get('case')
  7. if (!caseId) {
  8. throw new Error(
  9. '[transition-group] Missing "case" query param. Example: /transition-group/?case=vapor-transition-group/enter',
  10. )
  11. }
  12. createVaporApp(App, { caseId }).use(vaporInteropPlugin).mount('#app')