[HELP WANTED] Release bundle size visualization

Since I can’t find a visualization I like I just added a simple table that expresses all the info I wanted to know.

With shadow-cljs@2.0.101 you can do

npx shadow-cljs clj-repl
shadow-cljs - config: /Users/zilence/code/shadow-cljs/shadow-cljs.edn version: 2.0.101
shadow-cljs - connected to server
shadow-cljs - REPL - see (help), :repl/quit to exit
[11:0]~shadow.user=> (shadow/release-snapshot :ui {})
...

Then open http://localhost:9630 and follow the release snapshots links.

Looks something like this.

Far from perfect but enough to see how much each file contributes to the overall output.

Edit: (shadow/release-snapshot :ui {:tag "2.0.101"})). :tag defaults to latest which will override the previous one. Use :tag if you want something unique to make it comparable between releases.

Once I’m happy with this functionality I’ll add a proper CLI command.

6 Likes