babel-plugin-transform-compress-graphql
JSON →A Babel plugin (v1.3.3, latest stable) that removes unnecessary whitespace from GraphQL queries embedded in template literals during build. It compresses queries tagged with a configurable tag (default `gql`) or marked with a block comment like `/* GraphQL */`. The plugin uses `graphql-query-compress` under the hood and integrates seamlessly with Babel's env configuration to apply only in production. Unlike manual minification, it automates compression as part of the transpilation pipeline, supporting both tag and comment-based detection.