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 06ae2bf commit d8a884eCopy full SHA for d8a884e
src/node/plugin.ts
@@ -10,6 +10,7 @@ import {
10
} from 'vite'
11
import {
12
APP_PATH,
13
+ DEFAULT_THEME_PATH,
14
DIST_CLIENT_PATH,
15
SITE_DATA_REQUEST_PATH,
16
resolveAliases
@@ -156,8 +157,11 @@ export async function createVitePressPlugin(
156
157
include: [
158
'vue',
159
'vitepress > @vue/devtools-api',
- 'vitepress > @vueuse/core'
160
- ],
+ 'vitepress > @vueuse/core',
161
+ siteConfig.themeDir === DEFAULT_THEME_PATH
162
+ ? '@theme/index'
163
+ : undefined
164
+ ].filter((d) => d != null),
165
exclude: ['@docsearch/js', 'vitepress']
166
},
167
server: {
0 commit comments