Skip to content

Commit bcd7924

Browse files
committed
fixed crashing when error in entry file
1 parent 8e517c5 commit bcd7924

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/optimize/MinChunkSizePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ MinChunkSizePlugin.prototype.apply = function(compiler) {
3333
return a.size - b.size;
3434
});
3535

36-
if(argumentedChunks[0].size < minChunkSize && !argumentedChunks[0].entry) {
36+
if(argumentedChunks.length > 0 && argumentedChunks[0].size < minChunkSize && !argumentedChunks[0].entry) {
3737
for(var i = 1; i < argumentedChunks.length; i++) {
3838
if(argumentedChunks[i].size + argumentedChunks[0].size >= minChunkSize)
3939
break;

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.9.1",
3+
"version": "0.9.2",
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)