Skip to content

WIP: Add bundle analyzer for webpack

username-removed-636429 requested to merge add-webpack-bundle-analyzer into master

What does this MR do?

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:

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Our bundle sizes are getting too large and this helps us identify which components are most to blame and where to target our efforts.

Screenshots (if relevant)

Screen_Shot_2017-02-14_at_1.54.30_PM

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports