Skip to content

Commit

Permalink
Resolve shareable config from current dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Mar 30, 2018
1 parent 8b0a068 commit 648cc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.js
Expand Up @@ -100,7 +100,7 @@ module.exports = {
loadQueries: function loadQueries (context, name) {
if (!context.dangerousExtend) checkExtend(name)
// eslint-disable-next-line security/detect-non-literal-require
var queries = require(name)
var queries = require(require.resolve(name, { paths: ['.'] }))
if (!Array.isArray(queries)) {
throw new BrowserslistError(
'`' + name + '` config exports not an array of queries')
Expand Down

0 comments on commit 648cc2f

Please sign in to comment.