Skip to content

Commit

Permalink
Avoid errors for unresolved modules by using the base flavor of resol…
Browse files Browse the repository at this point in the history
…veFilename. [closes #89]
  • Loading branch information
jdalton committed Sep 7, 2017
1 parent f8ba5c3 commit 2221fc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import FastObject from "./fast-object.js"
import PkgInfo from "./pkg-info.js"

import _resolveFilename from "./module/_resolve-filename.js"
import isPath from "./util/is-path.js"
import realpath from "./fs/realpath.js"
import { resolve } from "path"
import resolveFilename from "./module/resolve-filename.js"
import rootModule from "./root-module.js"

const codeOfDash = "-".charCodeAt(0)
Expand Down Expand Up @@ -34,7 +34,7 @@ function hasLoaderParam(params) {
return true
}
} else if (param.charCodeAt(0) !== codeOfDash &&
resolveFilename(param, rootModule) === esmPath) {
_resolveFilename(param, rootModule) === esmPath) {
return true
}
}
Expand Down

0 comments on commit 2221fc8

Please sign in to comment.