{"library":"babel-plugin-relay","type":"library","category":null,"description":"A Babel plugin that transforms GraphQL tagged template literals (like graphql`...`) in Relay applications into runtime artifacts. Currently at version 20.1.1, it is part of the Relay framework maintained by Meta, with regular releases every few months. Key differentiators vs. alternatives: it works seamlessly with Relay's compiler and runtime, supports modern JavaScript and TypeScript, and integrates with Babel's plugin system. Unlike generic GraphQL tools, this plugin is tailored specifically for Relay's data masking and fragment composition patterns, requiring the Relay compiler to generate the necessary artifacts.","language":"javascript","status":"active","version":"20.1.1","tags":["javascript","graphql","relay","babel","babel-plugin"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-relay","imports":["module.exports = require('babel-plugin-relay');\n// or in .babelrc: { \"plugins\": [\"relay\"] }","import { graphql } from 'react-relay';\n// The babel-plugin-relay transforms graphql`...` template literals.","module.exports = {\n  plugins: [\n    ['relay', { artifactDirectory: './src/__generated__' }]\n  ]\n}"]},{"cmd":"yarn add babel-plugin-relay","imports":[]},{"cmd":"pnpm add babel-plugin-relay","imports":[]}],"homepage":"https://relay.dev","github":"https://github.com/facebook/relay","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-relay","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-relay/compatibility"}}