Skip to content

Commit

Permalink
fix: force optimize vue to avoid duplication when linked
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 15, 2021
1 parent fbcb07e commit eefba39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
}
Expand Down

0 comments on commit eefba39

Please sign in to comment.