Skip to content

Commit c2ab5b0

Browse files
committed
fix(build): don't destructure pages as it will be updated onFileAddDelete
1 parent 9b5c037 commit c2ab5b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export async function createVitePressPlugin(
7575
site,
7676
vue: userVuePluginOptions,
7777
vite: userViteConfig,
78-
pages,
7978
lastUpdated,
8079
cleanUrls
8180
} = siteConfig
@@ -131,7 +130,7 @@ export async function createVitePressPlugin(
131130
markdownToVue = await createMarkdownToVueRenderFn(
132131
srcDir,
133132
markdown,
134-
pages,
133+
siteConfig.pages,
135134
config.command === 'build',
136135
config.base,
137136
lastUpdated,

0 commit comments

Comments
 (0)