We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a090e12 commit 134af89Copy full SHA for 134af89
1 file changed
lib/resolve.js
@@ -27,7 +27,7 @@ function resolve(context, identifier, options, type, callback) {
27
break;
28
}
29
if(identArray[0] === "." || identArray[0] === ".." || identArray[0] === "" || identArray[0].match(/^[A-Z]:$/i)) {
30
- var pathname = identArray[0][0] === "." ? join(contextArray, identArray) : path.join.apply(path, identArray);
+ var pathname = identArray[0][0] === "." ? join(contextArray, identArray) : join(identArray, []);
31
if(type === "context") {
32
fs.stat(pathname, function(err, stat) {
33
if(err) {
0 commit comments