Allows you to generate a dependency graph after compiling webpack assets in order to analyze what contributes to the size of the bundle
To use simply prefix the webpack command with ANALYZE=1
:
ANALYZE=1 yarn run webpack
It will automatically launch your default browser with an interactive dependency map once webpack is finished compiling. See screenshot:
Our bundle sizes are getting too large and this helps us identify which components are most to blame and where to target our efforts.
master
(if it does - rebase it please)