Skip to content
JS
Package

babel-plugin-import-graphql

Babel plugin to make .gql/.graphql files importable

v2.8.1, 2 Jan 2021MITCommonJSTypes: NoneGraphQL
$ npm install babel-plugin-import-graphql

Key numbers

As of 25 Sept 2026
Weekly downloads
29k
-29% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
5 years ago
v2.8.1
GitHub stars
315
21 forks
Open issues / PRs
17 / 1
Contributors
-
Commits, last 52 weeks
35

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60kSept 2025Mar 2026Sept 2026High 59k (24 Feb 2026)Low 12.1k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

28,987 downloads last week, 130,760 in the last month. The 12-month change of -29% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.8.1, 2 Jan 20215 years ago
First published
-
Last push to GitHub
21 Sept 20263 days before the snapshot
Repository archived
No
Open issues
17
Open pull requests
1
Commits, last 52 weeks
35
Dependents on npm
21

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 4.x
Runtimes
-
Unpacked size (npm)
39 kB
Dependencies (1)
graphql-tag
Peer dependencies (2)
graphqlgraphql-tag
npm install babel-plugin-import-graphql
  • jsDelivrhttps://cdn.jsdelivr.net/npm/babel-plugin-import-graphql@2.8.1/
  • unpkghttps://unpkg.com/babel-plugin-import-graphql@2.8.1/
  • esm.shhttps://esm.sh/babel-plugin-import-graphql@2.8.1
PackageWeekly downloadsGzipLast releaseModuleComparison
apollo-upload-client702.5k-1 month agoCommonJS-
@apollo/federation-internals684.2k-1 month agoCommonJS-
@apollo/query-graphs209.9k-1 month agoCommonJS-
@apollo/react-common104.4k-6 years agoESM + CommonJS-
graphile-build81.5k-1 month agoCommonJS-
graphql-config5.8m-9 days agoESM + CommonJS-
@apollo/subgraph672.7k-10 days agoCommonJS-
@apollo/composition208.9k-1 month agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.