rollup-plugin-graphql-import

1.0.2 • Public • Published

rollup-plugin-graphql-import

CircleCI Greenkeeper badge

Rollup plugin to import *.graphql schema definitions as sdl strings. See: graphql-import.

Installation

yarn add --dev rollup-plugin-graphql-import

Usage

rollup.config.js:

// @flow
 
import graphqlImport from 'rollup-plugin-graphql-import';
 
export default {
  input: 'src/Schema.graphql',
  output: [{ file: 'dist/index.js', format: 'esm' }],
  plugins: [graphqlImport()],
};

Options

exclude

Files to exclude from the plugin.

  • Default: undefined
  • Type: ?(RegExp | RegExp[] | string | string[])

include

Files to include with the plugin.

  • Default: '**/*.graphql'
  • Type: ?(RegExp | RegExp[] | string | string[])

Package Sidebar

Install

npm i rollup-plugin-graphql-import

Weekly Downloads

0

Version

1.0.2

License

Unlicense

Unpacked Size

390 kB

Total Files

9

Last publish

Collaborators

  • psirenny