babel-plugin-import-graphql
JSON →A Babel plugin (v2.8.1) that enables importing .graphql and .gql files directly in JavaScript/TypeScript code, converting them into GraphQL AST objects via graphql-tag. Supports schema files with #import syntax, operation/fragment files with all import variants, and emits .d.ts declarations. Requires graphql >=0.9.6 and graphql-tag >=2.1.0 as peer dependencies. Commonly used in Apollo projects to avoid string literals and manual parsing. Active but with infrequent updates (last release January 2021).
Traffic · last 30 days ↓76% vs prev 7d
total hits 38
actors 8 distinct systems
last hit 3d ago human
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · VN
Resources
API endpoints
compatibility /v1/registry/babel-plugin-import-graphql/compatibility