fix: bring vue-global-api to the top

This commit is contained in:
Anthony Fu 2021-07-23 10:34:45 +08:00
parent 547bb7dbad
commit c716813570

View File

@ -1,3 +1,5 @@
// register vue composition api globally
import 'vue-global-api'
import { ViteSSG } from 'vite-ssg'
import generatedRoutes from 'virtual:generated-pages'
import { setupLayouts } from 'virtual:generated-layouts'
@ -10,13 +12,9 @@ import 'virtual:windi-components.css'
import './styles/main.css'
// windicss utilities should be the last style import
import 'virtual:windi-utilities.css'
// windicss devtools support (dev only)
import 'virtual:windi-devtools'
// register vue composition api globally
import 'vue-global-api'
const routes = setupLayouts(generatedRoutes)
// https://github.com/antfu/vite-ssg