b2nil / taro-ui-vue3

采用 Vue 3.0 重写的 Taro UI 组件库
https://b2nil.github.io/taro-ui-vue3/
MIT License
160 stars 51 forks source link

引入之后整个项目打包多了近300k #57

Closed pecopeco closed 3 years ago

pecopeco commented 3 years ago

作为小程序项目,这个大小有点接受不了

b2nil commented 3 years ago

是的,目前是比较大。有什么好的优化建议么?

whyour commented 3 years ago

可以先按组件打包,再打个整包

b2nil commented 3 years ago

@whyour 类似 element-plus 的做法么?

whyour commented 3 years ago

@whyour 类似 element-plus 的做法么?

对,多包管理 lerna

b2nil commented 3 years ago

关于这个问题,可从 taro-ui-vue3/lib 下按需引入组件。 之前版本的 taro-ui-vue3/lib 存在引用路径问题(#63),在 taro-ui-vue3@1.0.0-alpha.16 已修复。