Skip to content
PluginStats

babel-plugin-add-module-exports weekly downloads statistics

By 59naga · npm · Babel plugins

Fix babel/babel#2212

View on npm Stale · Oct 17, 2026

babel-plugin-add-module-exports has 507,580 recorded weekly downloads on npm, a decrease of 45.7% over the past 30 days, ranking #257 of 2,256 tracked listings.

Weekly downloads
507,580
Official API · Oct 17, 2026
7-day growth
-50.3%
-513.9K weekly downloads
30-day growth
-45.7%
-427.4K weekly downloads
90-day growth
-55.5%
-632.3K weekly downloads
Rank
#257
Among tracked npm listings

About babel-plugin-add-module-exports

babel-plugin-add-module-exports

Why?

Babel@6 doesn't export default module.exports any more - T2212 Kill CommonJS default export behavior.

Babel@6 transforms the following file

into

Therefore, it is a need to use the ugly .default in node.js.

This plugin follows the babel@5 behavior - add the module.exports if only the export default declaration exists.

Therefore, our old codes still work fine - the .default goes away. :wink:

Usage

Install this plugin from npm:

Write the name to babelrc. It works with preset-env to output CommonJS code:

modules: false

However, the plugin doesn't change the pure-esmodule. this plugin makes changes only when exists exports.default (in other words, using commonjs).

into

1.0.0 Currently support is commonjs and umd. Doesn't support amd, systemjs modules(don't use. there are no plans to support at the moment).

with Webpack

Likewise, webpack doesn't perform commonjs transformation for codesplitting. Need to set commonjs conversion.

Options

addDefaultProperty

If you're exporting an object and wish to maintain compatibility with code using the require('./bundle.js').default syntax, you can optionally enable the addDefaultProperty option as follows:

This will cause a second line of code to be added which aliases the default name to the exported object like so:

See also

• babel-plugin-experimental-syntax-dynamic-import

License

MIT

Description from the npm listing.

  • babel-plugin
  • module.exports

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-add-module-exports weekly downloads on npm, last 90 days: 507,580 weekly downloads as of Oct 17, 2026, -55.5% over 90 days.babel-plugin-add-module-exportsWeekly downloads on npm · Last 90 days507,580downloads / week-55.5% over 90 days400K600K800K1M1.2M1.4MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
babel-plugin-add-module-exports weekly downloads on npm, last 90 days: 507,580 weekly downloads as of Oct 17, 2026, -55.5% over 90 days.

7/30/90-day growth

babel-plugin-add-module-exports weekly downloads growth on npm: -50.3% over 7 days, -45.7% over 30 days, -55.5% over 90 days.babel-plugin-add-module-exportsWeekly downloads growth on npm507,580downloads / week now7-day growth-513,913 weekly downloads-50.3%30-day growth-427,369 weekly downloads-45.7%90-day growth-632,332 weekly downloads-55.5%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
babel-plugin-add-module-exports weekly downloads growth on npm: -50.3% over 7 days, -45.7% over 30 days, -55.5% over 90 days.

Ranking history

babel-plugin-add-module-exports npm ranking history: currently #257 (by weekly downloads).babel-plugin-add-module-exportsnpm ranking · by weekly downloads · Last 90 days#257current rank#80#100#120#140#160#180#200#220#240#260Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
babel-plugin-add-module-exports npm ranking history: currently #257 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 13, #17 (overall #257)
All npm: every listing in weekly downloads order

Listing placement

Babel plugins251 listings · 13 pages · page 8, #10 (overall #150)
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 (543)
Recent weekly downloads observations for babel-plugin-add-module-exports
Date (UTC)Weekly downloadsChange vs. previous
507,580-89K
596,539+7.8K
588,755-224.2K
812,951-227K
1,039,9170
1,039,917+3K
1,036,882+15.4K
1,021,493+10.9K
1,010,578+31.3K
979,304+20.4K
958,861+20.5K
938,362-201.4K
1,139,732+7.2K
1,132,578—

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-add-module-exports. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.