Skip to content
PluginStats

babel-plugin-inline-import weekly downloads statistics

By Quadric · npm · Babel plugins

Babel plugin to make raw files importable

View on npm Stale · Oct 17, 2026

babel-plugin-inline-import has 111,481 recorded weekly downloads on npm, a decrease of 41.7% over the past 30 days, ranking #439 of 2,256 tracked listings.

Weekly downloads
111,481
Official API · Oct 17, 2026
7-day growth
-49.7%
-110.4K weekly downloads
30-day growth
-41.7%
-79.7K weekly downloads
90-day growth
-48.2%
-103.7K weekly downloads
Rank
#439
Among tracked npm listings

About babel-plugin-inline-import

Babel Inline Import

Babel plugin to add the opportunity to use import with raw/literal content It is good e.g. for importing *.graphql files into your code.

Examples

Before (without Babel-Inline-Import):

Now (with Babel-Inline-Import):

Note: both cases are equivalent and will result in similar code after Babel transpile them. Check How it works section for details.

Install

Use

Add a .babelrc file and write:

or pass the plugin with the plugins-flag on CLI

By default, Babel-Inline-Import is compatible with the following file extensions:

• .raw • .text • .graphql

Customize

If you want to enable different file extensions, you can define them in your .babelrc file

How it works

It inserts the content of the imported file directly into the importing file, assigning it to a variable with the same identifier of the import statement, thus replacing the import statement and the file path by its resulting raw content (no parsing occurs).

Caveats

Babel does not track dependency between imported and importing files after the transformation is made. Therefore, you need to change the importing file in order to see your changes in the imported file spread. To overcome this:

• If you are using babel-node or babel-register, you can disable babel cache (BABEL_DISABLE_CACHE=1). • If you are using webpack with babel-loader, you can use babel-inline-import-loader.

Also make sure that your task runner is watching for changes in the imported file as well. You can see it working here.

Motivate

If you like this project just give it a star :) I like stars.

Description from the npm listing.

  • babel-plugin
  • graphql
  • raw
  • extension
  • wrap
  • import
  • inline

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-inline-import weekly downloads on npm, last 90 days: 111,481 weekly downloads as of Oct 17, 2026, -48.2% over 90 days.babel-plugin-inline-importWeekly downloads on npm · Last 90 days111,481downloads / week-48.2% over 90 days100K120K140K160K180K200K220K240K260KJul 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-inline-import weekly downloads on npm, last 90 days: 111,481 weekly downloads as of Oct 17, 2026, -48.2% over 90 days.

7/30/90-day growth

babel-plugin-inline-import weekly downloads growth on npm: -49.7% over 7 days, -41.7% over 30 days, -48.2% over 90 days.babel-plugin-inline-importWeekly downloads growth on npm111,481downloads / week now7-day growth-110,361 weekly downloads-49.7%30-day growth-79,703 weekly downloads-41.7%90-day growth-103,688 weekly downloads-48.2%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
babel-plugin-inline-import weekly downloads growth on npm: -49.7% over 7 days, -41.7% over 30 days, -48.2% over 90 days.

Ranking history

babel-plugin-inline-import npm ranking history: currently #439 (by weekly downloads).babel-plugin-inline-importnpm ranking · by weekly downloads · Last 90 days#439current rank#437#438#439#440#441Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
babel-plugin-inline-import npm ranking history: currently #439 (by weekly downloads).

Listing placement

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

Listing placement

Babel plugins251 listings · 13 pages · page 11, #18 (overall #218)
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 (121)
Recent weekly downloads observations for babel-plugin-inline-import
Date (UTC)Weekly downloadsChange vs. previous
111,481-20.2K
131,687-7.3K
138,996-51.4K
190,431-46.8K
237,2160
237,216+11K
226,232+4.4K
221,842+2.9K
218,966+10.8K
208,181+7K
201,182+4.7K
196,444-43K
239,455-1.4K
240,832—

Similar npm Babel plugins plugins

All 20 babel-plugin-inline-import 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-inline-import. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.