fix *nix paths

This commit is contained in:
Tobias Koppers 2012-03-12 18:12:35 +01:00
parent 85afe5214f
commit b675c7f13b
2 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,8 @@ module.exports = function resolve(context, identifier, options, callback) {
options.paths = [];
function finalResult(err, absoluteFilename) {
if(err) {
callback("Module \"" + identifier + "\" not found in context \"" + context + "\"");
callback("Module \"" + identifier + "\" not found in context \"" +
context + "\"\n" + err);
return;
}
callback(null, absoluteFilename);
@ -92,6 +93,8 @@ function join(a, b) {
var c = [];
a.forEach(function(x) { c.push(x) });
b.forEach(function(x) { c.push(x) });
if(c[0] === "")
c[0] = "/";
return path.join.apply(path, c);
}

View File

@ -1,6 +1,6 @@
{
"name": "webpack",
"version": "0.1.5",
"version": "0.1.6",
"author": "Tobias Koppers @sokra",
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand.",
"dependencies": {