babel-relay-plugin

Babel Relay Plugin for transpiling GraphQL queries for use with Relay.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-relay-plugin
0.11.06 years ago7 years agoMinified + gzip package size for babel-relay-plugin in KB

Readme

babel-relay-plugin

Installation

cd relay/scripts/babel-relay-plugin
npm install

Tests

npm test

Usage

var plugin = getBabelRelayPlugin(parsedSchemaJSON.data);

babel.transform(source, {
  plugins: [plugin],
  ...
});

License

Relay is BSD licensed. We also provide an additional patent grant.