Skip to content

Commit

Permalink
feat(build): expose vitepress site config to vite plugins (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Jan 20, 2023
1 parent fe52fa3 commit 05430e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ export async function createVitePressPlugin(
searchForWorkspaceRoot(process.cwd())
]
}
}
},
// @ts-ignore
vitepress: siteConfig
})
return userViteConfig
? mergeConfig(userViteConfig, baseConfig)
Expand Down

0 comments on commit 05430e4

Please sign in to comment.