npm.io
0.1.0 • Published 9 years ago

rollup-plugin-graphql

Licence
MIT
Version
0.1.0
Deps
2
Vulns
0
Weekly
0
Stars
9

rollup-plugin-graphql

Convert GraphQL files to ES6 modules:

// import a GraphQL Document from a GraphQL file,
import schema from './schema.graphql';

Installation

npm install --save-dev rollup-plugin-graphql

Usage

import { rollup } from 'rollup';
import graphql from 'rollup-plugin-graphql';

rollup({
  entry: 'main.js',
  plugins: [
    graphql()
  ]
});

License

MIT

Keywords