-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Configurable gql
import
#1342
Comments
I think this shouldn't be a Boolean. It would be great if it's flexible, to support other import locations, like Gatsby: #1321 |
Fixed in |
@dotansimha It's not exactly the same. I made By default we use the default export from |
@dotansimha #1376 should enable that |
More on that here https://github.com/DAB0mB/graphql-tag-pluck#options |
Available in 0.18.0 🎉 |
Is your feature request related to a problem? Please describe.
It's pretty much a recommended way to use
graphql.macro
for loading graphql files or inlining documents. Since CRA2.0 hasbabel-plugin-macros
includes it's a fairly cheap optimization of runtime code.Describe the solution you'd like
Add configuration option
gqlImportFrom
to specify where to findgql
.Describe alternatives you've considered
Perhaps a boolean flag directly for a macro variant?
The text was updated successfully, but these errors were encountered: