fix build errors
This commit is contained in:
parent
8733c1131f
commit
2240c77ed4
2 changed files with 16 additions and 8 deletions
|
@ -5,7 +5,6 @@ import { marked } from 'marked'
|
|||
import { markedHighlight } from 'marked-highlight'
|
||||
|
||||
import type { RoutedWindow } from '@goldenwere/mackenzii-types'
|
||||
import { registerLinkEmbed } from '@goldenwere/mackenzii-embeds'
|
||||
|
||||
import main from './main.vue'
|
||||
import './main.sass'
|
||||
|
@ -31,9 +30,13 @@ export const createApp = ViteSSG(
|
|||
// vue-router options
|
||||
{ routes: createRoutes() },
|
||||
// function to have custom setups
|
||||
({ app, router, routes, isClient, initialState }) => {
|
||||
registerLinkEmbed()
|
||||
window.router = router
|
||||
async ({ app, router, routes, isClient, initialState }) => {
|
||||
if (isClient) {
|
||||
import('@goldenwere/mackenzii-embeds').then(({ registerLinkEmbed }) => {
|
||||
registerLinkEmbed()
|
||||
})
|
||||
window.router = router
|
||||
}
|
||||
app.use(createPinia())
|
||||
initializeRouteStore(routes)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue