Skip to content
PluginStats

babel-plugin-filter-imports weekly downloads statistics

By ember-cli (3 listings) · npm · Babel plugins

A babel transform for filtering out imports

View on npm Fresh · Dec 6, 2026

babel-plugin-filter-imports has 129,488 recorded weekly downloads on npm, a decrease of 2.0% over the past 30 days, ranking #602 of 3,247 tracked listings.

Weekly downloads
129,488
Official API · Dec 5, 2026
7-day growth
+8.5%
+10.2K weekly downloads
30-day growth
-2.0%
-2.7K weekly downloads
90-day growth
-7.2%
-10K weekly downloads
Rank
#602
▼ 8 in 7 days

About babel-plugin-filter-imports

babel-plugin-filter-imports

Build Status npm Greenkeeper badge

This babel plugin is used to removed references to imports within a module. This can be useful for removing debugging statements when doing a production build of your code. It is often used in conjunction with other tools like Uglify that perform dead code elimination.

Installation

$ yarn add --dev babel-plugin-filter-imports

This plugin is for Babel 7. If you need to support:

  • Babel 6 use the babel6 branch
  • Babel 5 use the v0.2.x branch

Example

Given the .babelrc

{
  "plugins": [["filter-imports", {
    "imports": {
      "debugging-tools": [ "warn" ]
    }
  }]]
}

the module

import { warn } from 'debugging-tools';

function join(args, sep) {
  if (arguments.length > 2) {
    warn("join expects at most 2 arguments");
  }
  return args.join(sep);
}

will be transformed to

function join(args, sep) {
  if (arguments.length > 2) {
  }
  return args.join(sep);
}

Configuration

  • options[keepImports] [Boolean]: An flag that indicates imports removal from header.
  • options[imports] [Object]: An object whose keys are names of modules.
  • options[imports][moduleName] [String]: An array of names of imports from moduleName to be removed. You can include 'default' for default export and '*' for a namespace export.

Upgrade to 1.x/2.x

There were breaking changes in the plugin configuration, you must update it to work correctly.

Before 1.x
{
  "plugins": [["filter-imports", {
    "debugging-tools": [ "warn" ]
  }]]
}
After
{
  "plugins": [["filter-imports", {
    "imports": {
      "debugging-tools": [ "warn" ]
    }
  }]]
}

Description from the npm listing.

  • babel
  • 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-filter-imports weekly downloads on npm, last 90 days: 129,488 weekly downloads as of Dec 5, 2026, -7.2% over 90 days.babel-plugin-filter-importsWeekly downloads on npm · Last 90 days129,488downloads / week-7.2% over 90 days020K40K60K80K100K120K140K160K180KSep 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-filter-imports weekly downloads on npm, last 90 days: 129,488 weekly downloads as of Dec 5, 2026, -7.2% over 90 days.

7/30/90-day growth

babel-plugin-filter-imports weekly downloads growth on npm: +8.5% over 7 days, -2.0% over 30 days, -7.2% over 90 days.babel-plugin-filter-importsWeekly downloads growth on npm129,488downloads / week now7-day growth+10,168 weekly downloads+8.5%30-day growth-2,675 weekly downloads-2.0%90-day growth-9,989 weekly downloads-7.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-filter-imports weekly downloads growth on npm: +8.5% over 7 days, -2.0% over 30 days, -7.2% over 90 days.

Ranking history

babel-plugin-filter-imports npm ranking history: currently #602 (by weekly downloads).babel-plugin-filter-importsnpm ranking · by weekly downloads · Last 90 days#602current rank#100#200#300#400#500#600#700Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
babel-plugin-filter-imports npm ranking history: currently #602 (by weekly downloads).

Listing placement

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

Listing placement

Babel plugins263 listings · 14 pages · page 12, #19 (overall #239)
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 (592)
Recent weekly downloads observations for babel-plugin-filter-imports
Date (UTC)Weekly downloadsChange vs. previous
129,488-1.2K
130,675+4.1K
126,544+5K
121,553+2.3K
119,217+1.9K
117,352-1.4K
118,763-557
119,320+898
118,422-97
118,519-2.3K
120,770+1.8K
118,978+2.6K
116,365+2.1K
114,228—

Similar npm Babel plugins plugins

All 20 babel-plugin-filter-imports 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-filter-imports. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.