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 stale · no recent hits
total hits 9
actors 3 distinct systems
last hit 16d ago AhrefsBot
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany
Resources
API endpoints
compatibility /v1/registry/module-replace-webpack-plugin/compatibility