VS Code

Import Weight

Import Weight shows the minified and gzipped size of every package you import, in the editor, next to the import. It works with npm, pnpm, Yarn classic, and monorepos. Sizes update on save and are cached per package version. It runs offline.

Price and where to get it

Free. Pro is $9, once, on Gumroad.

What it does

  • One build at a time, with a cache keyed by package version.
  • Pro is $9, once, on Gumroad. It adds size budgets with warnings, a heavy-imports report, lighter-alternative suggestions, and a whole-package versus single-import comparison.