Skip to content
PluginStats

babel-plugin-const-enum weekly downloads statistics

By dosentmatter · npm · Babel plugins

Transform TypeScript `const` enums

View on npm Fresh · Oct 17, 2026

babel-plugin-const-enum has 2,352,090 recorded weekly downloads on npm, a decrease of 41.7% over the past 30 days.

It ranks #152 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -43.8%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
2,352,090
Official API · Oct 17, 2026
7-day growth
-53.9%
-2.8M weekly downloads
30-day growth
-41.7%
-1.7M weekly downloads
90-day growth
-43.8%
-1.8M weekly downloads
Rank
#152
Among tracked npm listings

About babel-plugin-const-enum

babel-plugin-const-enum ·

Transform TypeScript const enums

Install

Using npm:

or using yarn:

Usage

You are most likely using @babel/preset-typescript or @babel/plugin-transform-typescript along with this plugin.

If you are using @babel/preset-typescript, then nothing special needs to be done since plugins run before presets.

If you are using @babel/plugin-transform-typescript, then make sure that babel-plugin-const-enum comes before @babel/plugin-transform-typescript in the plugin array so that babel-plugin-const-enum runs first. This plugin needs to run first to transform the const enums into code that @babel/plugin-transform-typescript allows.

.babelrc

transform: removeConst (default)

Removes the const keyword to use regular enum. Can be used in a slower dev build to allow const, while prod still uses tsc. See babel#6476.

.babelrc

Or Explicitly:

.babelrc

transform: constObject

Transforms into a const object literal. Can be further compressed using Uglify/Terser to inline enum access. See babel#8741.

.babelrc

Troubleshooting

SyntaxError

You may be getting a SyntaxError because you are running this plugin on non-TypeScript source. You might have run into this problem in react-native, see: babel-plugin-const-enum#2 babel-plugin-const-enum#3

This seems to be caused by react-native transpiling flow code in node_modules. To fix this issue, please use babel-preset-const-enum to only run babel-plugin-const-enum on TypeScript files. If you wish to fix the issue manually, check out the solution in babel-plugin-const-enum#2.

Description from the npm listing.

  • babel-plugin
  • typescript
  • const
  • enum
  • terser
  • uglify
  • minify
  • compress

Where babel-plugin-const-enum 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.

All npm2,248 listings · 113 pages · page 8, #12 (overall #152)
All npm: every listing in weekly downloads order
PNG SVG
Babel plugins251 listings · 13 pages · page 6, #12 (overall #112)
Babel plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

babel-plugin-const-enum weekly downloads on npm, last 90 days: 2,352,090 weekly downloads as of Oct 17, 2026, -43.8% over 90 days.babel-plugin-const-enumWeekly downloads on npm · Last 90 days2,352,090downloads / week-43.8% over 90 days2M2.5M3M3.5M4M4.5M5M5.5M6MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
babel-plugin-const-enum weekly downloads on npm, last 90 days: 2,352,090 weekly downloads as of Oct 17, 2026, -43.8% over 90 days.
PNG SVG

7/30/90-day growth

babel-plugin-const-enum weekly downloads growth on npm: -53.9% over 7 days, -41.7% over 30 days, -43.8% over 90 days.babel-plugin-const-enumWeekly downloads growth on npm2,352,090downloads / week now7-day growth-2,753,990 weekly downlo…-53.9%30-day growth-1,680,549 weekly downlo…-41.7%90-day growth-1,832,948 weekly downlo…-43.8%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
babel-plugin-const-enum weekly downloads growth on npm: -53.9% over 7 days, -41.7% over 30 days, -43.8% over 90 days.
PNG SVG

Ranking history

babel-plugin-const-enum npm ranking history: currently #152 (by weekly downloads).babel-plugin-const-enumnpm ranking · by weekly downloads · Last 90 days#152current rank#40#60#80#100#120#140#160Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
babel-plugin-const-enum npm ranking history: currently #152 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for babel-plugin-const-enum
Date (UTC)Weekly downloadsChange vs. previous
2,352,090-321.8K
2,673,895+38.3K
2,635,612-1.2M
3,816,632-1.2M
5,015,3200
5,015,320-71.6K
5,086,969-19.1K
5,106,080+5.2K
5,100,911+79.1K
5,021,825+92.6K
4,929,189+125.3K
4,803,923-1.1M
5,871,212+79.1K
5,792,121—

Similar npm Babel plugins plugins

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-const-enum. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.