vue3-core/playground/src/main.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
220 B
TypeScript
Raw Normal View History

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