{"library":"module-replace-webpack-plugin","type":"library","category":null,"description":"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.","language":"javascript","status":"abandoned","version":"0.0.12","tags":["javascript","webpack","plugin","replace","module-replace-webpack-plugin"],"install":[{"cmd":"npm install module-replace-webpack-plugin","imports":["const ModuleReplaceWebpackPlugin = require('module-replace-webpack-plugin');","new ModuleReplaceWebpackPlugin({ modules: [{ test: /lodash/, replace: './patched.js' }] })","new ModuleReplaceWebpackPlugin({ modules: [...], exclude: [/patched\\.js$/] })"]},{"cmd":"yarn add module-replace-webpack-plugin","imports":[]},{"cmd":"pnpm add module-replace-webpack-plugin","imports":[]}],"homepage":null,"github":"https://github.com/nerdchacha/module-replace-webpack-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/module-replace-webpack-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/module-replace-webpack-plugin/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}