From 418fe79906ff772b298d7ed883f2db0fb869f746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E9=93=84=E8=BF=90=20=28Alan=20Song=29?= Date: Thu, 16 Sep 2021 18:38:40 +0800 Subject: [PATCH] fix type errors --- src/node/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index a76e84db..ffd08f8f 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -273,5 +273,5 @@ export function createVitePressPlugin( } } - return [vitePressPlugin, vuePlugin, ...(userViteConfig.plugins || [])] + return [vitePressPlugin, vuePlugin, ...(userViteConfig?.plugins || []) as Plugin[]] }