babel-plugin-inline-import weekly downloads statistics
By Quadric · npm · Babel plugins
Babel plugin to make raw files importable
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.
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm Babel plugins plugins
All 20 babel-plugin-inline-import alternativesData 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.