P
P
psyhO_octopus2015-07-19 22:39:59
JavaScript
psyhO_octopus, 2015-07-19 22:39:59

webpack. What is the difference between bundle, chunk and module?

Explain the difference between these three concepts. Preferably on fingers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lesha Fedoseev, 2015-07-19
@alexfedoseev

There are two bundles :
Each bundle has vendor modules (react, ember, jquery etc.). And application modules (what is written by you).
Each bundle can be divided into at least two chunks : the application itself and vendor libs (so that the user does not reload vendor libraries that have not changed when updating the application). And if the application is very large, then the bundle is split into even more chunks: for example, a chunk for the private messages interface, a chunk for the news feed, etc. Such chunks are loaded upon request (when the user navigates to the appropriate section / interface).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question