rollup-plugin-graphql

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-graphql

Weekly Downloads

485

Version

0.1.0

License

MIT

Last publish

Collaborators

  • kamilkisiela