Skip to content

Commit

Permalink
Merge pull request #138 from xjamundx/patch-1
Browse files Browse the repository at this point in the history
webpack resolver and eslint-loader (fixes #134)
  • Loading branch information
benmosher committed Dec 2, 2015
2 parents 4430d42 + bcde218 commit 67ae90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolvers/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports.resolveImport = function resolveImport(source, file, settings) {
// see if we've got an absolute path
if (!isAbsolute(configPath)) {
// if not, find ancestral package.json and use its directory as base for the path
var packageDir = findRoot(file)
var packageDir = findRoot(path.resolve(file))
if (!packageDir) throw new Error('package not found above ' + file)

configPath = path.join(packageDir, configPath)
Expand Down

0 comments on commit 67ae90a

Please sign in to comment.