fix *nix paths
This commit is contained in:
parent
85afe5214f
commit
b675c7f13b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue