Skip to content

Commit

Permalink
Updated CRA2 preprocess ability
Browse files Browse the repository at this point in the history
Initial loader support in CRA2 was reverted here: facebook/create-react-app#5076
Using the macro https://github.com/evenchange4/graphql.macro the same can be achieved.
  • Loading branch information
danilobuerger authored Jan 15, 2019
1 parent 5f9dc17 commit 430a30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ProductsPage extends React.Component {

#### Create-React-App

`create-react-app@2.0.0` will [support the ability to preprocess queries](https://github.com/facebook/create-react-app/pull/3909) using `graphql-tag/loader` without the need to eject.
`create-react-app@2.0.0` does support the ability to preprocess queries using [evenchange4/graphql.macro](https://github.com/evenchange4/graphql.macro).

If you're using an older version of `create-react-app`, check out [react-app-rewire-inline-import-graphql-ast](https://www.npmjs.com/package/react-app-rewire-inline-import-graphql-ast) to preprocess queries without needing to eject.

Expand Down

0 comments on commit 430a30a

Please # to comment.