Skip to content
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 absolute imports than only relative #36

Closed
vinhlh opened this issue Oct 4, 2018 · 3 comments
Closed

Support absolute imports than only relative #36

vinhlh opened this issue Oct 4, 2018 · 3 comments

Comments

@vinhlh
Copy link
Contributor

vinhlh commented Oct 4, 2018

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

@vinhlh vinhlh changed the title Support absolute import than only relative Support absolute imports than only relative Oct 4, 2018
@audiolion
Copy link

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

@smilexu
Copy link

smilexu commented Nov 1, 2018

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

evenchange4 pushed a commit that referenced this issue Jan 24, 2019
Resolves #36.

About NODE_PATH, we use to have this setting with projects created via create-react-app.

cc @evenchange4
@jdgreenberger
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants