babel-plugin-transform-minify-gql-template-literals
JSON →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.
Traffic · last 30 days ↓48% vs prev 7d
total hits 45
actors 8 distinct systems
last hit 1d ago human
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany · VN · 🇸🇬 Singapore