{"library":"babel-plugin-graphql-tag","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"3.3.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install babel-plugin-graphql-tag","imports":["module.exports = { plugins: ['babel-plugin-graphql-tag'] }","import gql from 'graphql-tag'","import { gql } from '@apollo/client'"]},{"cmd":"yarn add babel-plugin-graphql-tag","imports":[]},{"cmd":"pnpm add babel-plugin-graphql-tag","imports":[]}],"homepage":"https://github.com/gajus/babel-plugin-graphql-tag#readme","github":"https://github.com/gajus/babel-plugin-graphql-tag","docs":null,"changelog":null,"pypi":null,"npm":"babel-plugin-graphql-tag","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}