jacksplwxy
jacksplwxy
If I want to add ConcreteProductC, I have to modify ProductFactory . This will break the Open-Closed Principle. So, I suggest rewriting factory_method like my pull request. We can add...
是fork的或者参考他人代码修改的加个链接也行吧
**问题描述** 设置"optimization": { "subPackages": true }后,所有分包的第三方js文件仍然被打包到主包的vendor.js中,导致主包尺寸过大 **复现步骤** 1、npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project创建新项目 2、pages目录下新建index1页面,并且配置到pages.json中的subPackages中进行分包 3、index1下npm init,并安装lodash进行测试。index1中页面使用lodash,不依赖其他js ``` import _ from "lodash"; const result = _.chunk([1, 2, 3, 4, 5], 2); console.log(result) ```...