Skip to content

Commit 4b76617

Browse files
authored
fix: support vite plugins provided via config.vite (#394)
1 parent df69b76 commit 4b76617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function createVitePressPlugin(
3737
ssr = false,
3838
pageToHashMap?: Record<string, string>,
3939
clientJSMap?: Record<string, string>
40-
): Plugin[] {
40+
) {
4141
const {
4242
srcDir,
4343
configPath,
@@ -273,5 +273,5 @@ export function createVitePressPlugin(
273273
}
274274
}
275275

276-
return [vitePressPlugin, vuePlugin]
276+
return [vitePressPlugin, vuePlugin, ...(userViteConfig?.plugins || [])]
277277
}

0 commit comments

Comments
 (0)