JSPM

babel-plugin-relay

0.0.0-main-cbb6ec4a
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 217936
  • Score
    100M100P100Q170502F
  • License MIT

A Babel Plugin for use with Relay applications.

Package Exports

  • babel-plugin-relay
  • babel-plugin-relay/index.js
  • babel-plugin-relay/lib/compileGraphQLTag
  • babel-plugin-relay/lib/compileGraphQLTag.js
  • babel-plugin-relay/lib/getValidGraphQLTag
  • babel-plugin-relay/lib/getValidGraphQLTag.js
  • babel-plugin-relay/macro
  • babel-plugin-relay/macro.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-plugin-relay) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-plugin-relay

Relay requires a Babel plugin to convert GraphQL tags to runtime artifacts.

A very simplified example of what this plugin is doing:

// It converts this code
const fragment = graphql`
  fragment User_fragment on User {
    name
  }
`;

// To require generated ASTs for fragments and queries
const fragment = require('__generated__/User_fragment.graphql');

Configuration Instructions