Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Output file size analyzer tool #982
Comments
I was pretty sure I've seen a tool or a script that does this, but after spending a few minutes searching, I couldn't find it now. Hopefully someone else can recall, find, or create one. It's not very hard to write a script, as the minifized .js file has one line per imported package. For non-GopherJS size analysis, I've used goweight. |
Thanks, I also had the same feeling yet found nothing, but decided to ask before I try to write something myself :) |
Is there a tool which can analyze GopherJS-generated JavaScript file and build a diagram of which packets contribute to the file size and through which dependencies they were pulled in? That is, something similar to https://github.com/webpack-contrib/webpack-bundle-analyzer, which can understand Go packages.
This is tangentially related #136, but is separate, since it's not about changing compiler as much as about understanding where file size comes from.