Configurable "search and replace" plugin. Replaces matching nodes in the tree with a given replacement node. For example you can replace `process.NODE_ENV` with `"production"`.
babel-plugin-minify-replace has 242,605 recorded weekly downloads on npm, a decrease of 45.1% over the past 30 days.
It ranks #343 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -41.8%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About babel-plugin-minify-replace
babel-plugin-minify-replace
Configurable "search and replace" plugin. Replaces matching nodes in the tree with a given replacement node. For example you can replace process.NODE_ENV with "production".
Example
Options
In
Out
Installation
Usage
Via .babelrc (Recommended)
.babelrc
Via CLI
Via Node API
Description from the npm listing.
babel-plugin
Where babel-plugin-minify-replace sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.