|
|
@ -10,6 +10,7 @@ import {
|
|
|
|
} from 'vite'
|
|
|
|
} from 'vite'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
APP_PATH,
|
|
|
|
APP_PATH,
|
|
|
|
|
|
|
|
DEFAULT_THEME_PATH,
|
|
|
|
DIST_CLIENT_PATH,
|
|
|
|
DIST_CLIENT_PATH,
|
|
|
|
SITE_DATA_REQUEST_PATH,
|
|
|
|
SITE_DATA_REQUEST_PATH,
|
|
|
|
resolveAliases
|
|
|
|
resolveAliases
|
|
|
@ -156,8 +157,11 @@ export async function createVitePressPlugin(
|
|
|
|
include: [
|
|
|
|
include: [
|
|
|
|
'vue',
|
|
|
|
'vue',
|
|
|
|
'vitepress > @vue/devtools-api',
|
|
|
|
'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']
|
|
|
|
exclude: ['@docsearch/js', 'vitepress']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
server: {
|
|
|
|