mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(cli): duplicate vue in first dev (#11120)
* fix(cli): duplicate vue in first dev * docs: add changelog
This commit is contained in:
parent
19ce1d205d
commit
2d981afde2
@ -1,5 +1,11 @@
|
||||
# 更新日志
|
||||
|
||||
## v5.0.2
|
||||
|
||||
`2022-10-07`
|
||||
|
||||
- 修复首次运行 dev 时 vite 引入了两份 Vue 代码导致渲染失败的问题
|
||||
|
||||
## v5.0.1
|
||||
|
||||
`2022-10-06`
|
||||
|
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user