I have an app in ClojureScript, which uses Google's Closure Compiler as a compiler backend. The resulting bundle using advanced optimizations seems way too big for what it is. I blame the dependencies but how do I find out which modules are taking the most bytes in the output bundle? I scanned through all the Closure Compiler options and didn't find anything useful. Then I tried to learn about source maps and use that to calculate individual module size but with no success.
I would like a tree-like output where I can dig in and find the biggest modules in terms of size, eg.
- [+]
goog
100kb- [+]
goog.net
30kb
- [+]
- [+]
react
90kb - [+]
my
50kb- [+]
my.namespace
30kb
- [+]
cljs.build.api
and thus uses the same compiler options, and I don't see any that would provide me some extra insight. Also, it would be cool if you could name some other build tools that don't fully propagate source map data and why? I'm not keen to switch build systems but I'd like to have that build report :) – Quaquaversal