-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Relay Modern with babel-plugin-relay #2907
Comments
Maybe this will help? There are some other project along the same lines if that one doesn't work for you. |
I have already included create-react-app in my project, but my proposal is to adopt it natively in the create-react-app project. It is a proposal. |
Closing as a duplicate of #2001. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I´m building my first GraphQL and Relay project using a GraphQL server, a
create-react-app
client and following the instructions onbabel-plugin-relay
to make my code recognize the graphql syntaxgraphql
.After setting up the whole environment, I´ve build the GraphQL server. All fine and working.
When I moved to client, I simply could not use
babel-plugin-relay
as instructed in the official documentation. After hours trying to solve I found out that thebabel-plugin-relay
can only be added tocreate-react-app
if we eject the project.Both
create-react-app
andbabel-plugin-relay
were born at Facebook, as well as Relay, and I see no reason whycreate-react-app
does not supportbabel-plugin-relay
without ejecting. Seens to be a couple of lines addition to currentcreate-react-app
babel configuration version, so:a) Is is planned a version of
create-react-app
that will support thebabel-plugin-relay
required for Relay Modern ?b) Considering the current situation, what is the best approach to include
babel-plugin-relay
tocreate-react-app
without ejecting ?The text was updated successfully, but these errors were encountered: