Skip to content

Commit 5530203

Browse files
committed
fixes webpack#29
1 parent 3704d13 commit 5530203

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/buildDeps.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@ module.exports = function buildDeps(context, mainModule, options, callback) {
4949
// all other stuff is added recursivly
5050
addModule(depTree, context, mainModule, options, {type: "main"}, function(err, id) {
5151
if(err) {
52-
depTree.errors.push("Entry module failed!\n " + err +
53-
"\n @ " + mainModule);
54-
id = 0;
52+
if(depTree.modulesById[0]) {
53+
depTree.errors.push("Entry module failed!\n " + err +
54+
"\n @ " + mainModule);
55+
id = 0;
56+
} else {
57+
return callback(err);
58+
}
5559
}
5660
buildTree(id);
5761
});

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.7.11",
3+
"version": "0.7.12",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs/AMD Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loading of js, json, jade, coffee, css, ... out of the box and more with custom loaders.",
66
"dependencies": {

0 commit comments

Comments
 (0)