A Gatsby plugin (v1.0.2, last release) that enables loading .graphql and .gql files directly in your Gatsby project by leveraging apollographql/graphql-tag/loader. It processes queries at build time, reducing runtime overhead, and integrates seamlessly with Gatsby's webpack configuration. Main differentiator: no runtime parsing needed, unlike alternatives that use gql tag in source code.
npm install gatsby-plugin-graphql-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to add the plugin to gatsby-config.js and import a .graphql file directly in a component, avoiding the graphql tag.
Consider using gatsby-plugin-graphql-config or inline graphql tags with graphql-tag.
Ensure 'graphql-tag' is in your dependencies: npm install graphql-tag.
npm install graphql-tag
No dependency data recorded yet.