evenchange4 / graphql.macro

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

Support absolute imports than only relative #36

Closed vinhlh closed 5 years ago

vinhlh commented 5 years ago

Looks like currently we only support relative paths https://github.com/evenchange4/graphql.macro/blob/master/src/macro.js#L31

audiolion commented 5 years ago

this is a killer for me, I have a mono-repo setup and it isn't finding my graphql imports

smilexu commented 5 years ago

same issue for me, especially you need to import fragment which located in different folder as query file, that would be the hell

jdgreenberger commented 5 years ago

Would it be possible to handle absolute imports using tsconfig as well?