From bcd7924ec6b8c9bfe8758ad12be948bf80aa3683 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 14 Mar 2013 14:51:29 +0100 Subject: [PATCH] fixed crashing when error in entry file --- lib/optimize/MinChunkSizePlugin.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/optimize/MinChunkSizePlugin.js b/lib/optimize/MinChunkSizePlugin.js index 30130a746..38521a6c3 100644 --- a/lib/optimize/MinChunkSizePlugin.js +++ b/lib/optimize/MinChunkSizePlugin.js @@ -33,7 +33,7 @@ MinChunkSizePlugin.prototype.apply = function(compiler) { return a.size - b.size; }); - if(argumentedChunks[0].size < minChunkSize && !argumentedChunks[0].entry) { + if(argumentedChunks.length > 0 && argumentedChunks[0].size < minChunkSize && !argumentedChunks[0].entry) { for(var i = 1; i < argumentedChunks.length; i++) { if(argumentedChunks[i].size + argumentedChunks[0].size >= minChunkSize) break; diff --git a/package.json b/package.json index 80c28b542..c77e8e456 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack", - "version": "0.9.1", + "version": "0.9.2", "author": "Tobias Koppers @sokra", "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.", "dependencies": {