vue3-core/playground/src/main.ts

7 lines
211 B
TypeScript
Raw Normal View History

2023-11-17 03:01:19 +08:00
import { render } from 'vue/vapor'
2023-11-24 20:29:05 +08:00
const modules = import.meta.glob<any>('./*.vue')
const mod = (modules['.' + location.pathname] || modules['./App.vue'])()
2023-12-06 14:59:11 +08:00
mod.then(({ default: mod }) => render(mod, '#app'))