module-replace-webpack-plugin
JSON →A webpack plugin (v0.0.12, latest as of 2025) that replaces imported modules at build time, allowing monkey patching of third-party libraries without modifying source code. Designed for webpack 3.x only. Uses regex-based matching to swap `require`/`import` statements. No updates since 2018; limited compatibility and no support for webpack 4+ or ESM. Different from string-replace-loader as it operates on module resolution rather than string substitution.
Traffic · last 30 days ↓75% vs prev 7d
total hits 37
actors 8 distinct systems
last hit 3d ago Amazonbot
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇳🇴 Norway · 🇩🇪 Germany · 🇮🇹 Italy
Resources
API endpoints
compatibility /v1/registry/module-replace-webpack-plugin/compatibility