parcel-plugin-graphql-raw
v1.0.4
Published
Allows Parcel to export GraphQL files as plain text
Downloads
130
Readme
parcel-plugin-graphql-raw
Some packages (like nanographql) uses plain-text GraphQL Schema instead of JSON, generated by graphql-tag.
Since GraphqlAsset uses graphql-tag, this plugin allows Parcel to export GraphQL files as plain text
Usage
Install plugin:
# via yarn
yarn add -D parcel-plugin-graphql-raw
# via npm
npm i -D parcel-plugin-graphql-raw
Import GraphQL file (with .graphql or .gql extension):
import simple from './simple.gql';