A Rollup plugin that provides polyfills for Node.js built-in modules (e.g., buffer, process, stream, crypto) to enable bundling packages written for Node.js in browser environments. Current stable version is 0.13.4. It is a community-maintained fork of rollup-plugin-node-polyfills, supporting Rollup v1–v4. Key differentiators: supports named imports for many polyfilled modules, includes source maps, and allows fine-grained include/exclude control. Peers: rollup ^1.20 || ^2 || ^3 || ^4.
npm install rollup-runtime-polyfill-coreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Rollup configuration using rollup-runtime-polyfill-core with node-resolve and commonjs, polyfilling all files and enabling source maps.
Add parentheses: nodePolyfills() in plugins array.
Check that nodePolyfills() returns an object with 'name' property; if issues, upgrade plugin or use Rollup v2.
Use a dedicated crypto polyfill library or limit usage to non-sensitive operations.
Do not rely on http polyfill for real requests; use fetch or axios in browser.
Use nodePolyfills() in plugins array.
Change to import nodePolyfills from 'rollup-runtime-polyfill-core'.
Set include: null to polyfill all files, or explicitly include process module.