fix(cli): duplicate vue in first dev (#11120)

* fix(cli): duplicate vue in first dev

* docs: add changelog
This commit is contained in:
neverland 2022-10-07 10:08:46 +08:00 committed by GitHub
parent 19ce1d205d
commit 2d981afde2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,11 @@
# 更新日志
## v5.0.2
`2022-10-07`
- 修复首次运行 dev 时 vite 引入了两份 Vue 代码导致渲染失败的问题
## v5.0.1
`2022-10-06`

View File

@ -144,6 +144,11 @@ export function getViteConfigForSiteDev(): InlineConfig {
return {
root: SITE_SRC_DIR,
optimizeDeps: {
// https://github.com/youzan/vant/issues/10930
include: ['vue', 'vue-router'],
},
plugins: [
vitePluginGenVantBaseCode(),
vitePluginVue({