evenchange4 / graphql.macro

Compile GraphQL AST at build-time with babel-plugin-macros.
MIT License
239 stars 21 forks source link

Support create-react-app v3 absolute imports? #92

Closed FezVrasta closed 5 years ago

FezVrasta commented 5 years ago

I have my fixtures into src/fixtures, it would be great to be able to const query = loader('fixtures/query') rather than having to specify the full relative path.

Is this something that this library could implement?

FezVrasta commented 5 years ago

It seems like support for NODE_PATH has been implemented with https://github.com/evenchange4/graphql.macro/issues/36, but CRA v3 changed the way we configure the parameter so it doesn't work anymore.

evenchange4 commented 5 years ago

Thanks! Released v1.4.0 with your changes. 🙌

FezVrasta commented 5 years ago

Great thanks!

gastonmorixe commented 4 years ago

@FezVrasta @evenchange4 It would be helpful if we could support tsconfig.json files too