摘要: 1、Tree Shaking(强大) 如果我们的项目中引入了 lodash 包,但是我只有了其中的一个方法。其他没有用到的方法是不是冗余的?此时 tree-shaking 就可以把没有用的那些东西剔除掉,来大大减少最终的bundle体积。 usedExports : true, 标记没有用的叶子 m 阅读全文
posted @ 2022-02-14 22:42 福小松 阅读(2209) 评论(0) 推荐(0) 编辑