Skip to content
PluginStats

babel-plugin-transform-runtime weekly downloads statistics

By babel (204 listings) · npm · Babel plugins

Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals

View on npm Fresh · Oct 17, 2026

babel-plugin-transform-runtime has 162,693 recorded weekly downloads on npm, a decrease of 51.5% over the past 30 days.

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

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

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
162,693
Official API · Oct 17, 2026
7-day growth
-48.8%
-155K weekly downloads
30-day growth
-51.5%
-173K weekly downloads
90-day growth
-52.6%
-180.3K weekly downloads
Rank
#392
Among tracked npm listings

About babel-plugin-transform-runtime

babel-plugin-transform-runtime

Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals. (This plugin is recommended in a library/tool)

NOTE: Instance methods such as "foobar".includes("foo") will not work since that would require modification of existing builtins (Use babel-polyfill for that).

Why?

Babel uses very small helpers for common functions such as _extend. By default this will be added to every file that requires it. This duplication is sometimes unnecessary, especially when your application is spread out over multiple files.

This is where the transform-runtime plugin comes in: all of the helpers will reference the module babel-runtime to avoid duplication across your compiled output. The runtime will be compiled into your build.

Another purpose of this transformer is to create a sandboxed environment for your code. If you use babel-polyfill and the built-ins it provides such as Promise, Set and Map, those will pollute the global scope. While this might be ok for an app or a command line tool, it becomes a problem if your code is a library which you intend to publish for others to use or if you can't exactly control the environment in which your code will run.

The transformer will alias these built-ins to core-js so you can use them seamlessly without having to require the polyfill.

See the technical details section for more information on how this works and the types of transformations that occur.

Installation

NOTE - Production vs. development dependencies

In most cases, you should install babel-plugin-transform-runtime as a development dependency (with --save-dev).

and babel-runtime as a production dependency (with --save).

The transformation plugin is typically used only in development, but the runtime itself will be depended on by your deployed/published code. See the examples below for more details.

Usage

Via .babelrc (Recommended)

Add the following line to your .babelrc file:

Via CLI

Via Node API

Technical details

The runtime transformer plugin does three things:

• Automatically requires babel-runtime/regenerator when you use generators/async functions. • Automatically requires babel-runtime/core-js and maps ES6 static methods and built-ins. • Removes the inline babel helpers and uses the module babel-runtime/helpers instead.

What does this actually mean though? Basically, you can use built-ins such as Promise, Set, Symbol etc as well use all the Babel features that require a polyfill seamlessly, without global pollution, making it extremely suitable for libraries.

Make sure you include babel-runtime as a dependency.

Regenerator aliasing

Whenever you use a generator function or async function:

the following is generated:

This isn't ideal as then you have to include the regenerator runtime which pollutes the global scope.

Instead what the runtime transformer does it compile that to:

This means that you can use the regenerator runtime without polluting your current environment.

core-js aliasing

Sometimes you may want to use new built-ins such as Map, Set, Promise etc. Your only way to use these is usually to include a globally polluting polyfill.

What the runtime transformer does is transform the following:

into the following:

This means is that you can seamlessly use these native built-ins and static methods without worrying about where they come from.

NOTE: Instance methods such as "foobar".includes("foo") will not work.

Helper aliasing

Usually babel will place helpers at the top of your file to do common tasks to avoid duplicating the code around in the current file. Sometimes these helpers can get a little bulky and add unnecessary duplication across files. The runtime transformer replaces all the helper calls to a module.

That means that the following code:

usually turns into:

the runtime transformer however turns this into:

Description from the npm listing.

  • babel-plugin

Where babel-plugin-transform-runtime 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 20, #12 (overall #392)
All npm: every listing in weekly downloads order
PNG SVG
Babel plugins251 listings · 13 pages · page 11, #3 (overall #203)
Babel plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

babel-plugin-transform-runtime weekly downloads on npm, last 90 days: 162,693 weekly downloads as of Oct 17, 2026, -52.6% over 90 days.babel-plugin-transform-runtimeWeekly downloads on npm · Last 90 days162,693downloads / week-52.6% over 90 days0100K200K300K400K500K600K700K800KJul 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-transform-runtime weekly downloads on npm, last 90 days: 162,693 weekly downloads as of Oct 17, 2026, -52.6% over 90 days.
PNG SVG

7/30/90-day growth

babel-plugin-transform-runtime weekly downloads growth on npm: -48.8% over 7 days, -51.5% over 30 days, -52.6% over 90 days.babel-plugin-transform-runtimeWeekly downloads growth on npm162,693downloads / week now7-day growth-154,973 weekly downloads-48.8%30-day growth-172,993 weekly downloads-51.5%90-day growth-180,306 weekly downloads-52.6%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
babel-plugin-transform-runtime weekly downloads growth on npm: -48.8% over 7 days, -51.5% over 30 days, -52.6% over 90 days.
PNG SVG

Ranking history

babel-plugin-transform-runtime npm ranking history: currently #392 (by weekly downloads).babel-plugin-transform-runtimenpm ranking · by weekly downloads · Last 90 days#392current rank#390#391#392#393#394Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
babel-plugin-transform-runtime npm ranking history: currently #392 (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 (121)
Recent weekly downloads observations for babel-plugin-transform-runtime
Date (UTC)Weekly downloadsChange vs. previous
162,693-39.6K
202,273-1.8K
204,044-65.1K
269,157-63.9K
333,1060
333,106+6.9K
326,175+8.5K
317,666+7.4K
310,218+5.8K
304,374+1K
303,364-254
303,618-62.6K
366,216-11.7K
377,928—

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