Bundle size investigation. A step-by-step guide to shrinking your JavaScript

Illustration of a fallen, decorated Christmas tree with a cat sitting in a star-patterned pot, above the headline “Bundle Size Investigation: A Step-by-Step Guide to Shrinking Your JavaScript”.

Nadia Makarevich walks through Vite bundle analysis, finds tree-shaking traps like wildcard imports, removes non-ESM bloat like lodash, and consolidates duplicate date libraries, shrinking a React app from 5MB to about 601KB.

developerway.com/posts/bundle-size-investigation