Skip to content
PluginStats

babel-plugin-minify-replace weekly downloads statistics

By babel (206 listings) · npm · Babel plugins

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"`.

View on npm Fresh · Dec 6, 2026

babel-plugin-minify-replace has 586,439 recorded weekly downloads on npm, an increase of 15.8% over the past 30 days, ranking #362 of 3,247 tracked listings.

Weekly downloads
586,439
Official API · Dec 5, 2026
7-day growth
+7.2%
+39.6K weekly downloads
30-day growth
+15.8%
+79.8K weekly downloads
90-day growth
+42.0%
+173.4K weekly downloads
Rank
#362
▼ 9 in 7 days

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

[
  {
    identifierName: "__DEV__",
    replacement: {
      type: "numericLiteral",
      value: 0,
    },
  },
]

In

if (!__DEV__) {
  foo();
}
if (a.__DEV__) {
  foo();
}

Out

if (!0) {
  foo();
}
if (a.__DEV__) {
  foo();
}

Installation

npm install babel-plugin-minify-replace --save-dev

Usage

Via .babelrc (Recommended)

.babelrc

// without options
{
  "plugins": ["minify-replace"]
}
// with options
{
  "plugins": [
    ["minify-replace", {
      "replacements": [{
        "identifierName": "__DEV__",
        "replacement": {
          "type": "booleanLiteral",
          "value": true
        }
      }]
    }]
  ]
}
Via CLI
babel --plugins minify-replace script.js
Via Node API
require("@babel/core").transform("code", {
  plugins: ["minify-replace"]
});

Description from the npm listing.

  • babel-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

babel-plugin-minify-replace weekly downloads on npm, last 90 days: 586,439 weekly downloads as of Dec 5, 2026, +42.0% over 90 days.babel-plugin-minify-replaceWeekly downloads on npm · Last 90 days586,439downloads / week+42.0% over 90 days0100K200K300K400K500K600K700KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
babel-plugin-minify-replace weekly downloads on npm, last 90 days: 586,439 weekly downloads as of Dec 5, 2026, +42.0% over 90 days.

7/30/90-day growth

babel-plugin-minify-replace weekly downloads growth on npm: +7.2% over 7 days, +15.8% over 30 days, +42.0% over 90 days.babel-plugin-minify-replaceWeekly downloads growth on npm586,439downloads / week now7-day growth+39,569 weekly downloads+7.2%30-day growth+79,820 weekly downloads+15.8%90-day growth+173,367 weekly downloads+42.0%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-minify-replace weekly downloads growth on npm: +7.2% over 7 days, +15.8% over 30 days, +42.0% over 90 days.

Ranking history

babel-plugin-minify-replace npm ranking history: currently #362 (by weekly downloads).babel-plugin-minify-replacenpm ranking · by weekly downloads · Last 90 days#362current rank#330#340#350#360#370#380#390Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
babel-plugin-minify-replace npm ranking history: currently #362 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 19, #2 (overall #362)
All npm: every listing in weekly downloads order

Listing placement

Babel plugins263 listings · 14 pages · page 9, #16 (overall #176)
Babel plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (170)
Recent weekly downloads observations for babel-plugin-minify-replace
Date (UTC)Weekly downloadsChange vs. previous
586,439+4.6K
581,846+8.7K
573,164+5.8K
567,371+4.8K
562,534+20.1K
542,403-4.2K
546,617-253
546,870+1.7K
545,161-8K
553,205-5.7K
558,928-8.4K
567,308+1.9K
565,381+24.2K
541,177—

Similar npm Babel plugins plugins

All 20 babel-plugin-minify-replace alternatives

Data source

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.

Listing: https://www.npmjs.com/package/babel-plugin-minify-replace. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.