This package has been deprecated

Author message:

Use the official plugin @rollup/plugin-graphql instead.

@kocal/rollup-plugin-graphql

1.0.0 • Public • Published

rollup-plugin-graphql

Convert GraphQL files to ES6 modules:

:warn: This package is a fork of the initial rollup-plugin-graphql. This fork is compatible with Rollup ^1.0 - thanks to @bennypowers (https://github.com/kamilkisiela/rollup-plugin-graphql/pull/7).

And myself, I've just published the module on NPM to make the fork more easier to install on a project.

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

// or import named Query/Mutation
import { FooQuery, FooMutation } from './schema.graphql';

Installation

npm install --save-dev @kocal/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 @kocal/rollup-plugin-graphql

Weekly Downloads

241

Version

1.0.0

License

MIT

Unpacked Size

9.36 kB

Total Files

8

Last publish

Collaborators

  • kocal