Skip to content

Commit

Permalink
fix(build): don't destructure pages as it will be updated onFileAddDe…
Browse files Browse the repository at this point in the history
…lete
  • Loading branch information
brc-dd committed Jan 27, 2025
1 parent 9b5c037 commit c2ab5b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export async function createVitePressPlugin(
site,
vue: userVuePluginOptions,
vite: userViteConfig,
pages,
lastUpdated,
cleanUrls
} = siteConfig
Expand Down Expand Up @@ -131,7 +130,7 @@ export async function createVitePressPlugin(
markdownToVue = await createMarkdownToVueRenderFn(
srcDir,
markdown,
pages,
siteConfig.pages,
config.command === 'build',
config.base,
lastUpdated,
Expand Down

0 comments on commit c2ab5b0

Please sign in to comment.