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 ; input: 'src/Schema.graphql' output: file: 'dist/index.js' format: 'esm' plugins: ;
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[])