fix: prevent reload on first server start in fresh installations

pull/4600/head
Divyansh Singh 7 months ago
parent 06ae2bf3a4
commit d8a884ed0f

@ -10,6 +10,7 @@ import {
} from 'vite'
import {
APP_PATH,
DEFAULT_THEME_PATH,
DIST_CLIENT_PATH,
SITE_DATA_REQUEST_PATH,
resolveAliases
@ -156,8 +157,11 @@ export async function createVitePressPlugin(
include: [
'vue',
'vitepress > @vue/devtools-api',
'vitepress > @vueuse/core'
],
'vitepress > @vueuse/core',
siteConfig.themeDir === DEFAULT_THEME_PATH
? '@theme/index'
: undefined
].filter((d) => d != null),
exclude: ['@docsearch/js', 'vitepress']
},
server: {

Loading…
Cancel
Save