Skip to content

Commit b720229

Browse files
committed
fixes webpack#83
1 parent c5b52b5 commit b720229

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/Stats.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,13 @@ Stats.jsonToString = function jsonToString(obj, useColors) {
314314
obj.modules.forEach(function(module) {
315315
modulesByIdentifier["$"+module.identifier] = module;
316316
});
317-
} else {
317+
} else if(obj.chunks) {
318318
obj.chunks.forEach(function(chunk) {
319-
chunk.modules.forEach(function(module) {
320-
modulesByIdentifier["$"+module.identifier] = module;
321-
});
319+
if(chunk.modules) {
320+
chunk.modules.forEach(function(module) {
321+
modulesByIdentifier["$"+module.identifier] = module;
322+
});
323+
}
322324
});
323325
}
324326
function processProfile(module) {

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.10.0-beta6",
3+
"version": "0.10.0-beta7",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs/AMD/Labeled Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.",
66
"dependencies": {

0 commit comments

Comments
 (0)