Skip to content

Commit

Permalink
work around dynamic requires by implicitly coercing string types (gra…
Browse files Browse the repository at this point in the history
  • Loading branch information
asiandrummer authored Jun 9, 2017
1 parent f5e8bd9 commit 3f6996a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ export class GraphQLLanguageService {
appName,
);
if (customRulesModulePath) {
const rulesPath = require.resolve(customRulesModulePath);
/* eslint-disable no-implicit-coercion */
const rulesPath = require.resolve('' + customRulesModulePath);
if (rulesPath) {
customRules = require(rulesPath)(this._graphQLConfig);
customRules = require('' + rulesPath)(this._graphQLConfig);
}
/* eslint-enable no-implicit-coercion */
}
}

Expand Down

0 comments on commit 3f6996a

Please sign in to comment.