webpack-contrib / bundle-loader

Bundle Loader
MIT License
658 stars 59 forks source link

[Docs] [Question] improvements for react-lazy-load #38

Closed AoDev closed 6 years ago

AoDev commented 7 years ago

Hello,

There is a tip in this page: https://webpack.js.org/guides/lazy-load-react/ that says:

By using the bundle loader we can semantically name chunks to intelligently load groups of code.

There are a few plugins that are related to split / bundle / lazyload. The path to the right solution is not clear for me.

Especially on another page about migrating to webpack2, it is said:

Caveat: require.ensure allows for easy chunk naming with the optional third argument, but import API doesn't offer that capability yet. If you want to keep that functionality, you can continue using require.ensure.

Does that mean that it's possible to name bundles with bundle-loader in some way, although supposedly not possible by using Webpack import?