Skip to content

Commit

Permalink
went the wrong way on the isAbsolute change before
Browse files Browse the repository at this point in the history
😅 _now_ it doesn't support 0.10.x anymore
  • Loading branch information
benmosher committed May 1, 2018
1 parent ee71e49 commit 4a3d5ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions resolvers/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var findRoot = require('find-root')
, isEqual = require('lodash/isEqual')
, find = require('array-find')
, interpret = require('interpret')
, isAbsolute = require('is-absolute')
, fs = require('fs')
, coreLibs = require('node-libs-browser')
, resolve = require('resolve')
Expand Down Expand Up @@ -56,7 +55,7 @@ exports.resolve = function (source, file, settings) {
if (!configPath || typeof configPath === 'string') {

// see if we've got an absolute path
if (!configPath || !isAbsolute(configPath)) {
if (!configPath || !path.isAbsolute(configPath)) {
// if not, find ancestral package.json and use its directory as base for the path
packageDir = findRoot(path.resolve(file))
if (!packageDir) throw new Error('package not found above ' + file)
Expand Down Expand Up @@ -335,7 +334,7 @@ function findConfigPath(configPath, packageDir) {
})

// see if we've got an absolute path
if (!isAbsolute(configPath)) {
if (!path.isAbsolute(configPath)) {
configPath = path.join(packageDir, configPath)
}
} else {
Expand Down
1 change: 0 additions & 1 deletion resolvers/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"find-root": "^1.1.0",
"has": "^1.0.1",
"interpret": "^1.0.0",
"is-absolute": "^0.2.3",
"lodash": "^4.17.4",
"node-libs-browser": "^1.0.0 || ^2.0.0",
"resolve": "^1.4.0",
Expand Down

0 comments on commit 4a3d5ad

Please sign in to comment.