qiniu / builder

Apache License 2.0
34 stars 33 forks source link

Extract dynamic import chunk and support filesystem cache #148

Closed liaoyu closed 3 years ago

liaoyu commented 3 years ago

改动点

参考文档

  1. https://github.com/webpack/changelog-v5/blob/master/guides/persistent-caching.md
  2. https://webpack.js.org/configuration/cache
  3. https://webpack.js.org/plugins/split-chunks-plugin/#splitchunkschunks

测试用例

使用 filesystem cache 时 portal-fusion 第一次打包会比不启用缓存慢一点,但后面二次打包可以稳定在 10s 以下

image

image

dynamic import 打包测试是使用的 portal-pili image