evenchange4 / graphql.macro

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

Issue with relative imports with loader() #52

Closed Slessi closed 5 years ago

Slessi commented 5 years ago

In 1.1.0 we could use loader as follows

const query = loader("../Query.graphql");

But after upgrading to 1.3.0 there seems to be some issue forcing us to always prepend ./ to paths, i.e.

const query = loader("./../Query.graphql");

Without it, the query is not found

evenchange4 commented 5 years ago

I published a patch v1.3.1. Please feel free to reopen this issue if the problem still occurs.

Slessi commented 5 years ago

Fixed thanks 👍