We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb8cbf commit 5c9b75eCopy full SHA for 5c9b75e
src/node/plugin.ts
@@ -21,6 +21,12 @@ import { staticDataPlugin } from './staticDataPlugin'
21
import { slash } from './utils/slash'
22
import { webFontsPlugin } from './webFontsPlugin'
23
24
+declare module 'vite' {
25
+ interface UserConfig {
26
+ vitepress?: SiteConfig
27
+ }
28
+}
29
+
30
const hashRE = /\.(\w+)\.js$/
31
const staticInjectMarkerRE =
32
/\b(const _hoisted_\d+ = \/\*(?:#|@)__PURE__\*\/\s*createStaticVNode)\("(.*)", (\d+)\)/g
@@ -131,7 +137,6 @@ export async function createVitePressPlugin(
131
137
]
132
138
}
133
139
},
134
- // @ts-ignore
135
140
vitepress: siteConfig
136
141
})
142
return userViteConfig
0 commit comments