Skip to content

Commit b675c7f

Browse files
committed
fix *nix paths
1 parent 85afe52 commit b675c7f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎lib/resolve.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ module.exports = function resolve(context, identifier, options, callback) {
2727
options.paths = [];
2828
function finalResult(err, absoluteFilename) {
2929
if(err) {
30-
callback("Module \"" + identifier + "\" not found in context \"" + context + "\"");
30+
callback("Module \"" + identifier + "\" not found in context \"" +
31+
context + "\"\n" + err);
3132
return;
3233
}
3334
callback(null, absoluteFilename);
@@ -92,6 +93,8 @@ function join(a, b) {
9293
var c = [];
9394
a.forEach(function(x) { c.push(x) });
9495
b.forEach(function(x) { c.push(x) });
96+
if(c[0] === "")
97+
c[0] = "/";
9598
return path.join.apply(path, c);
9699
}
97100

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand.",
66
"dependencies": {

0 commit comments

Comments
 (0)