Skip to content

bennypowers/rollup-plugin-graphql

 
 

Repository files navigation

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

About

Convert graphql files to ES6 modules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%