Skip to content

Commit c9e2518

Browse files
kassensfacebook-github-bot
authored andcommitted
export DotGraphQLParser.parseFile
Reviewed By: alunyov Differential Revision: D9260586 fbshipit-source-id: 2138226d08f873913f0d89dd4f0edf6bcc5559d8
1 parent 8547db2 commit c9e2518

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/graphql-compiler/core/DotGraphQLParser.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ function parseFile(baseDir: string, file: File): ?DocumentNode {
2727
});
2828
}
2929

30-
exports.getParser = function getParser(baseDir: string): ASTCache {
30+
function getParser(baseDir: string): ASTCache {
3131
return new ASTCache({baseDir, parse: parseFile});
32+
}
33+
34+
module.exports = {
35+
parseFile,
36+
getParser,
3237
};

0 commit comments

Comments
 (0)