perf(seller): Element Plus 按需引入 + 移除未使用的 vue-lazyload

- plugins/element.js 不再全量注册,组件由 unplugin-vue-components 按模板自动按需解析;
  v-loading 指令与全局配置(zhCn/size)单独保留
- chunk-framework 344KB → 279KB(gzip,-19%);样式仍走全量 CSS 保证覆盖顺序不变
- 修复 unplugin-vue-components 与 minimatch 的版本兼容(锁定 0.27.5 + resolutions 嵌套 v9)
- 移除全局注册但零使用的 vue-lazyload
This commit is contained in:
lifenlong
2026-10-13 07:39:35 +08:00
parent 88fc1b0b2a
commit 2a2c3f8174
5 changed files with 160 additions and 35 deletions

View File

@@ -30,7 +30,6 @@
"swiper": "^6.3.5",
"uuid": "^8.3.2",
"vue": "^3.5.35",
"vue-lazyload": "^3.0.0",
"vue-qr": "^5.0.3",
"vue-router": "^4.6.4",
"vuedraggable": "^4.1.0",
@@ -52,12 +51,13 @@
"less-loader": "^11.1.4",
"style-loader": "^3.3.4",
"style-resources-loader": "^1.5.0",
"unplugin-vue-components": "0.27.5",
"vue-cli-plugin-style-resources-loader": "^0.1.5",
"vue-eslint-parser": "^10",
"webpack": "^5.95.0"
},
"resolutions": {
"minimatch": "^3.1.2",
"@achrinza/node-ipc": "9.2.2"
"@achrinza/node-ipc": "9.2.2",
"unplugin-vue-components/minimatch": "^9.0.5"
}
}