fix(types): augment vite user config (#1946)

pull/1954/head
Divyansh Singh 3 years ago committed by GitHub
parent bcb8cbf3c8
commit 5c9b75e325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save