mirror of https://github.com/webpack/webpack.git
fix *nix paths
This commit is contained in:
parent
a090e12322
commit
134af89ce8
|
|
@ -27,7 +27,7 @@ function resolve(context, identifier, options, type, callback) {
|
|||
break;
|
||||
}
|
||||
if(identArray[0] === "." || identArray[0] === ".." || identArray[0] === "" || identArray[0].match(/^[A-Z]:$/i)) {
|
||||
var pathname = identArray[0][0] === "." ? join(contextArray, identArray) : path.join.apply(path, identArray);
|
||||
var pathname = identArray[0][0] === "." ? join(contextArray, identArray) : join(identArray, []);
|
||||
if(type === "context") {
|
||||
fs.stat(pathname, function(err, stat) {
|
||||
if(err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue