Skip to content

Commit

Permalink
Add section for create-react-app to webpack.md (apollographql#2916)
Browse files Browse the repository at this point in the history
  • Loading branch information
detrohutt authored and James Baxley committed Jan 29, 2018
1 parent d5fd13e commit 9265ac0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/recipes/webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ export default graphql(currentUserQuery)(Profile)
[FuseBox](http://fuse-box.org) can't use the Webpack loaders. To make the same transformation work in FuseBox, use [fuse-box-graphql-plugin](https://github.com/otothea/fuse-box-graphql-plugin).

## React native

[React native](https://facebook.github.io/react-native/) can't use the Webpack loaders. To make the same transformation work in React native, use [babel-plugin-inline-import-graphql-ast](https://github.com/detrohutt/babel-plugin-inline-import-graphql-ast).

## Create-React-App

[react-app-rewire-inline-import-graphql-ast](https://github.com/detrohutt/react-app-rewire-inline-import-graphql-ast/) is available for users of [create-react-app](https://github.com/facebook/create-react-app/) that would like to use graphql files without needing to eject the app first.

## Fragments

You can use and include fragments in .graphql files and have webpack include those dependencies for you, similar to how you would use fragments and queries with the gql tag in plain JS.
Expand Down

0 comments on commit 9265ac0

Please sign in to comment.