Write your answer…


I have written about the topic in detail. TL;DR; use dynamic import or require.ensure. Latter is more flexible, but former is more fun to write as it provides a Promise based interface.


Hashnode is building a friendly and inclusive dev community. Come jump on the bandwagon!

  • 💬 A beginner friendly place

  • 🧠 Stay in the loop and grow your knowledge

  • 🍕 >500K developers share programming wisdom here

  • ❤️ Support the growing dev community!

Register ( 500k+ developers strong 👊)

What specifically are you trying to do? I'm in the middle of a project using webpack 2.

Show all replies

It is quite large lol. It is all a bit weird at times. As for the lodash lib, do you import the whole thing or do you install the specific bits you need? Could be it down quite a lot :)

Reply to this…