From 4fd064f9101907fc2edb030cbe8c2a93c35e5b5b Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Fri, 20 Jan 2023 23:19:20 +0530 Subject: [PATCH] feat(build): expose vitepress site config to vite plugins --- src/node/plugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index fb68788ad18c..14475f592cac 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -129,7 +129,9 @@ export async function createVitePressPlugin( searchForWorkspaceRoot(process.cwd()) ] } - } + }, + // @ts-ignore + vitepress: siteConfig }) return userViteConfig ? mergeConfig(userViteConfig, baseConfig)