rollup-plugin-polyfill-node

JSON →
library 0.13.4 ·javascript
verified Jun 4, 2026

A Rollup plugin that provides browser polyfills for Node.js built-in modules (e.g., 'buffer', 'process', 'events', 'stream', 'util', 'path', 'crypto', 'fs') in bundles. Current stable version is 0.13.4. Community-maintained fork of ionic-team/rollup-plugin-node-polyfills with updated support for Rollup v1–v4 and TypeScript types. Key differentiator: it leverages ES6 named imports for tree-shakable polyfills, targeting node_modules by default. Not all modules are fully shimmed—some are empty or partial (e.g., http, https, crypto, fs). Active development.