diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 4eef341aa566..11e29d7e650e 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -21,6 +21,12 @@ import { staticDataPlugin } from './staticDataPlugin' import { slash } from './utils/slash' import { webFontsPlugin } from './webFontsPlugin' +declare module 'vite' { + interface UserConfig { + vitepress?: SiteConfig + } +} + const hashRE = /\.(\w+)\.js$/ const staticInjectMarkerRE = /\b(const _hoisted_\d+ = \/\*(?:#|@)__PURE__\*\/\s*createStaticVNode)\("(.*)", (\d+)\)/g @@ -131,7 +137,6 @@ export async function createVitePressPlugin( ] } }, - // @ts-ignore vitepress: siteConfig }) return userViteConfig