Converts GraphQL (.graphql) files into ES6 modules for use with Rollup bundler. Version 0.1.0 has infrequent releases. Minimal plugin with no additional features beyond file-to-module conversion, contrasting with more feature-rich alternatives like graphql-tag/loader. Only supports GraphQL documents, not fragments or operations separately. Requires peer dependency graphql ^0.9.0 or ^0.10.0. Limited to Rollup; not compatible with other bundlers.
npm install rollup-plugin-graphqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows using rollup-plugin-graphql to import a GraphQL schema file in a Rollup build.
Pin graphql to ^0.10.0 or use a different plugin.
Use graphql-tag/loader or other tools for advanced GraphQL usage.
Rename files to .graphql or adjust plugin configuration.
Run npm install --save-dev rollup-plugin-graphql
Ensure the file exists and path is correct; consider using absolute paths.