Preparing for system design interviews?  Try bugzed.com →

rollup-plugin-rename-node-modules

JSON →
library 1.3.1 ·javascript
verified Jun 18, 2026

A Rollup plugin that renames the `node_modules` directory in the output when bundling with `preserveModules` and also rewrites relative imports to point to the new folder. Version 1.3.1 is the latest stable release. It addresses a common npm publishing issue where npm ignores `node_modules` in the output directory. Supports a custom replacer function (since 1.3.0), optional source map generation (since 1.2.0), and requires Rollup 2.28.2+ and Node 8+. This is a niche utility for library authors bundling dependencies with `preserveModules`.

total hits 11
actors 5 distinct systems
last hit 24d ago AhrefsBot
GPTBot
4
ClaudeBot
2
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany · 🇬🇧 United Kingdom