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 Fresh · Oct 18, 2026

babel-plugin-inline-import has 126,417 recorded weekly downloads on npm, a decrease of 34.3% over the past 30 days, ranking #442 of 2,322 tracked listings.

Weekly downloads
126,417
Official API · Oct 18, 2026
7-day growth
-44.1%
-99.8K weekly downloads
30-day growth
-34.3%
-65.9K weekly downloads
90-day growth
-42.4%
-93.2K weekly downloads
Rank
#442
Among tracked npm listings

About babel-plugin-inline-import

Babel Inline Import Build Status

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

Examples

Before (without Babel-Inline-Import):

// server.js

// bad syntax highlighting, no syntax checking
const typeDefinitions = `
type Query {
  testString: String
}
schema {
  query: Query
}
`;

graphQLServer({
  schema: [typeDefinitions],
  ...
});

Now (with Babel-Inline-Import):

// /some/schema.graphql
type Query {
  testString: String
}
schema {
  query: Query
}
// server.js
import schema from '/some/schema.graphql';

graphQLServer({
  schema: [schema],
  ...
});

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

Install

npm install babel-plugin-inline-import --save-dev

Use

Add a .babelrc file and write:

{
  "plugins": [
    "babel-plugin-inline-import"
  ]
}

or pass the plugin with the plugins-flag on CLI

babel-node myfile.js --plugins babel-plugin-inline-import

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

{
  "plugins": [
    ["babel-plugin-inline-import", {
      "extensions": [
        ".json",
        ".sql"
      ]
    }]
  ]
}

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:

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: 126,417 weekly downloads as of Oct 18, 2026, -42.4% over 90 days.babel-plugin-inline-importWeekly downloads on npm · Last 90 days126,417downloads / week-42.4% over 90 days100K120K140K160K180K200K220K240K260KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
babel-plugin-inline-import weekly downloads on npm, last 90 days: 126,417 weekly downloads as of Oct 18, 2026, -42.4% over 90 days.

7/30/90-day growth

babel-plugin-inline-import weekly downloads growth on npm: -44.1% over 7 days, -34.3% over 30 days, -42.4% over 90 days.babel-plugin-inline-importWeekly downloads growth on npm126,417downloads / week now7-day growth-99,815 weekly downloads-44.1%30-day growth-65,940 weekly downloads-34.3%90-day growth-93,219 weekly downloads-42.4%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
babel-plugin-inline-import weekly downloads growth on npm: -44.1% over 7 days, -34.3% over 30 days, -42.4% over 90 days.

Ranking history

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

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 23, #2 (overall #442)
All npm: every listing in weekly downloads order

Listing placement

Babel plugins252 listings · 13 pages · page 11, #20 (overall #220)
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 (122)
Recent weekly downloads observations for babel-plugin-inline-import
Date (UTC)Weekly downloadsChange vs. previous
126,417+14.9K
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—

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 20, 2026. See the methodology.