DEV Community

Discussion on: Better React Micro Frontends w/ Nx

Collapse
 
clamstew profile image
Clay Stewart

Why disable chunking?

Collapse
 
mgmarlow profile image
Graham Marlow

The container application has to fetch a micro frontend's JS dynamically and load it into the page. This wouldn't be possible (or at least, it would require quite a bit of fancy engineering) if the micro frontend were chunked, since the container would need to fetch all of the separate JS files, reconcile load order, and figure out which chunks are actually needed.

The Thoughtworks article has a bit more detail on this subject in their example.