# rollup-plugin-graphql

> Convert graphql files to ES6 modules

Latest version **0.1.0** (published 2017-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-graphql
pnpm add rollup-plugin-graphql
yarn add rollup-plugin-graphql
bun add rollup-plugin-graphql
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-06-16 |
| First published | 2017-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Kamil Kisiela |
| Maintainers | kamilkisiela |
| Keywords | graphql, rollup, rollupjs |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-graphql
- Repository: https://github.com/kamilkisiela/rollup-plugin-graphql
- Homepage: https://github.com/kamilkisiela/rollup-plugin-graphql#readme
- Issues: https://github.com/kamilkisiela/rollup-plugin-graphql/issues
- npm.io page: https://npm.io/package/rollup-plugin-graphql

## Dependencies (2)

- [graphql-tag](https://npm.io/package/graphql-tag.md) ^2.2.2
- [rollup-pluginutils](https://npm.io/package/rollup-pluginutils.md) ^2.0.1

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-06-16
- 0.0.1 — 2017-06-07

## README

# rollup-plugin-graphql

Convert GraphQL files to ES6 modules:

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


## Installation

```bash
npm install --save-dev rollup-plugin-graphql
```


## Usage

```js
import { rollup } from 'rollup';
import graphql from 'rollup-plugin-graphql';

rollup({
  entry: 'main.js',
  plugins: [
    graphql()
  ]
});
```


## License

MIT

---
_Source: https://npm.io/package/rollup-plugin-graphql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
