2.0.1 • Published 5 years ago

react-app-rewire-inline-import-graphql-ast v2.0.1

Weekly downloads
84
License
MIT
Repository
github
Last release
5 years ago

Donate

react-app-rewire-inline-import-graphql-ast

Add babel-plugin-import-graphql to your create-react-app app via react-app-rewired

Versions

For react-app-rewired@2.x use v2.x of this package. For react-app-rewired@1.x use v1.x of this package.

Installation

npm install --save react-app-rewire-inline-import-graphql-ast
# alternatively if you have yarn installed
yarn add react-app-rewire-inline-import-graphql-ast

Usage

In the config-overrides.js you created for react-app-rewired add this code:

/* config-overrides.js */

const rewireInlineImportGraphqlAst = require('react-app-rewire-inline-import-graphql-ast');

module.exports = function override(config, env) {
  config = rewireInlineImportGraphqlAst(config, env);
  return config;
}

Credits

This repo borrows heavily from react-app-rewire-styled-components by @withspectrum

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago