babel-relay-plugin

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-relay-plugin
18,2486630.11.07 years ago9 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.