mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
16 lines
311 B
TypeScript
16 lines
311 B
TypeScript
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import { directives, plugins } from './global-setup'
|
|
|
|
const app = createApp(App)
|
|
|
|
plugins.forEach((plugin) => {
|
|
app.use(plugin())
|
|
})
|
|
|
|
Object.entries(directives).forEach(([name, directive]) => {
|
|
app.directive(name, directive)
|
|
})
|
|
|
|
app.mount('#app')
|