Broccoli filter plugin (v1.0.1) that converts .graphql files into ES6 modules exporting an AST representation of the query, supporting fragment imports via graphql-import syntax. Can parse at build time (JSON AST) or runtime (graphql-tag template literals). Requires Node >=10 and peer dependency graphql ^14|^15|^16. Differentiates from other GraphQL preprocessing tools by integrating directly with the Broccoli build pipeline, enabling efficient asset compilation in Ember apps or other Broccoli-based projects.
npm install broccoli-graphql-filterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, Brocfile configuration, and importing the AST from a .graphql file.
Update your .graphql files to use the new import syntax: # import * from 'path' or # import Foo from 'path'
Install graphql-tag: npm install graphql-tag
Import as './my-query.graphql' instead of './my-query'
Use Node >=12
npm install graphql
Ensure import path matches actual file and use correct import syntax: # import * from './my-fragment'
npm install graphql-tag