babel-plugin-transform-minify-gql-template-literals

JSON →
library 1.1.1 ·javascript maintenance
verified May 27, 2026

A Babel plugin that minifies gql template literals by removing whitespace, comments, and unnecessary characters from GraphQL queries defined inline with the gql tag. Compatible with Babel 6 and 7 (used in many projects still). Current stable version 1.1.1, no active development seen since 2019. Uses simple string manipulation (full name removal) rather than parsing with graphql-js, making it lightweight and fast. This approach avoids bundle size increases from AST pre-compilation while still reducing payload. Alternative to graphql-tag/loader for those who inline queries.

total hits 45
actors 8 distinct systems
last hit 1d ago human
Amazonbot
4
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
Search engines
1
Humans
7

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany · VN · 🇸🇬 Singapore