reactjs - Why even after code splitting using react loadable npm package, my main.chunk.js file size still same? - Stack Overflo

In my application, I'm doing code splitting using React Loadable as we need to load dynamic import

In my application, I'm doing code splitting using React Loadable as we need to load dynamic imports. We are using Sitecore JSS Layout Service to load components.

For reference, we are following Sitecore's documentation at .php/2018/08/Code-splitting-with-Sitecore-JSS-React.

All my components are rendering and loaded correctly, but I'm unsure why my main.chunk.js file is still the same size even after code splitting. Additionally, I can see some extra chunks named 1.chunk.js and 2.chunk.js are being loaded alongside my newly-loaded component chunks.

Why are these chunks loading? Is this expected behavior, or am I doing something wrong?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744273837a4566233.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信