1.0.2 • Published 7 years ago
rollup-plugin-graphql-import v1.0.2
rollup-plugin-graphql-import
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[])