Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 1, 2022
1 parent 2f15b43 commit f4521a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fs from 'fs-extra'
import type { InlineConfig, ResolvedConfig } from 'vite'
import { mergeConfig, resolveConfig, build as viteBuild } from 'vite'
import type { SSRContext } from 'vue/server-renderer'
import { nextTick } from 'vue';
import { nextTick } from 'vue'
import { JSDOM } from 'jsdom'
import type { VitePluginPWAAPI } from 'vite-plugin-pwa'
import type { RouteRecordRaw } from 'vue-router'
Expand Down Expand Up @@ -169,7 +169,7 @@ export async function build(ssgOptions: Partial<ViteSSGOptions> = {}, viteConfig
head?.updateDOM(jsdom.window.document)

// wait for waiting HTML changes to be applied [see https://github.com/antfu/vite-ssg/pull/312]
await nextTick();
await nextTick()

const html = jsdom.serialize()
let transformed = (await onPageRendered?.(route, html, appCtx)) || html
Expand Down

0 comments on commit f4521a2

Please sign in to comment.