Skip to content

Commit feb7c7c

Browse files
committed
arguments bug fix
1 parent 5973233 commit feb7c7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/optimize/CommonsChunkPlugin.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Author Tobias Koppers @sokra
44
*/
55
function CommonsChunkPlugin(options, filenameTemplate, selectedChunks, minChunks) {
6-
if(options && typeof options === "object") {
6+
if(options && typeof options === "object" && !Array.isArray(options)) {
77
this.chunkNames = options.name || options.names;
88
this.filenameTemplate = options.filename;
99
this.minChunks = options.minChunks;

0 commit comments

Comments
 (0)