From 430a30a1e1ab3680a53400ee63f4145829bf62a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20B=C3=BCrger?= Date: Tue, 15 Jan 2019 15:05:23 +0100 Subject: [PATCH] Updated CRA2 preprocess ability Initial loader support in CRA2 was reverted here: https://github.com/facebook/create-react-app/pull/5076 Using the macro https://github.com/evenchange4/graphql.macro the same can be achieved. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f825fdef..11e967a4 100644 --- a/README.md +++ b/README.md @@ -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.