Skip to content

Add the inline-import-graphql-ast Babel plugin to your create-react-app app via react-app-rewired

License

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected] use v2.x of this package. For [email protected] 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

About

Add the inline-import-graphql-ast Babel plugin to your create-react-app app via react-app-rewired

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •