Skip to content

Commit

Permalink
[RelaySourceModuleParser] Format source path relative to cwd
Browse files Browse the repository at this point in the history
Either an absolute path or a path relative
to the wd is necessary for IDEs to find
the file in question.
  • Loading branch information
alloy committed Jun 4, 2019
1 parent 75f0974 commit cfb7d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relay-compiler/core/RelaySourceModuleParser.js
Expand Up @@ -69,7 +69,7 @@ module.exports = (
memoizedTagFinder(text, baseDir, file).forEach(tag => {
const source = new GraphQL.Source(
tag.template,
file.relPath,
path.join(path.relative(process.cwd(), baseDir), file.relPath),
tag.sourceLocationOffset,
);
const ast = parseGraphQL(source);
Expand Down

0 comments on commit cfb7d04

Please sign in to comment.