Polyfills in NPM Packages

Published on September 11, 2023

← Back to tips

Did you know that many NPM packages include polyfills for features dating back to Node v4?

This means that even if you’re using the latest LTS version, you may be installing unnecessary polyfills for older Node versions.

Nolyfill by @isukkaw saves disk space by replacing unnecessary polyfills with lighter alternatives based on the local node version.

Run npx nolyfill install to automatically detect the package manager and make the replacements.

Check out the GitHub repository for more information: https://github.com/SukkaW/nolyfill

🎉 Interested in Frontend or Indie-hacking?

I talk about the latest in frontend, along with my experience in building various (Indie) side-projects