babel-plugin-graphql-tag
JSON →Compiles GraphQL tagged template strings using graphql-tag at build time, reducing bundle size by up to 50 KB and improving initialization speed. Current stable version is 3.3.0. It removes the graphql-tag dependency from the runtime by pre-compiling gql template literals into AST objects. Supports both import and require() for graphql-tag and @apollo/client. Options include importSources, onlyMatchImportSuffix, strip, transform, and gqlTagIdentifiers. It handles fragments via template literal interpolation. Known issues involve dynamic require() detection. Release cadence is low, with sporadic updates.
Traffic · last 30 days stale · no recent hits
total hits 10
actors 3 distinct systems
last hit 17d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇫🇮 Finland · 🇬🇧 United Kingdom · 🇨🇦 Canada
Resources
packagebabel-plugin-graphql-tag ↗