From eefba398b0e5a4b5afb47ce6e06b0c39a6be55d2 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 14 Jun 2021 20:46:29 -0400 Subject: [PATCH] fix: force optimize vue to avoid duplication when linked --- src/node/plugin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 2c9f9e02..d84ba0d3 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -72,6 +72,8 @@ export function createVitePressPlugin( __ALGOLIA__: !!site.themeConfig.algolia }, optimizeDeps: { + // force include vue to avoid duplicated copies when linked + optimized + include: ['vue'], exclude: ['@docsearch/js'] } }