Snowpack plugin that enables importing .graphql files as parsed GraphQL documents, similar to graphql-tag/loader for webpack. Version 0.1.0, initial release. Supports fragment imports via #import syntax. A lightweight alternative for Snowpack users who need GraphQL document loading without webpack. Not actively maintained - last release was in 2020.
npm install snowpack-plugin-graphql-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Snowpack to load .graphql files and use them with Apollo Client.
Rename files to .graphql or modify plugin source to include .gql.
Consider migrating to Vite and using a GraphQL loader plugin for Vite (e.g., vite-plugin-graphql).
Run: npm install snowpack-plugin-graphql
Validate your .graphql files with a linter or GraphQL validator before importing.
Ensure plugin is listed in snowpack.config.js and graphql is installed as a dependency.