How big is your bundle?

July 8, 2024

I've been thinking a lot about the size of my bundle lately. Said no one ever. Until Big Cloud starts throwing egress fees in your face.

For us next-pilled degens, theres a plugin called @next/bundle-analyzer that helps identifying bloat large enough to warp spacetime.

Just enable it and run your build:

ANALYZE=true bun build

It's a great tool to visualize the size of your bundle and pinpoint the culprits. Thought I'd share this, in case you don't read the docs like me.