Skip to content

Commit 0c5dd57

Browse files
committed
fix include option when it is array
1 parent 309f8dd commit 0c5dd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/extract-chunks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function extractChunks ({ compilation, optionsInclude }) {
5252
let includeChunks
5353
let includeType
5454
let includeEntryPoints
55-
if (optionsInclude && typeof optionsInclude === 'object') {
55+
if (optionsInclude && typeof optionsInclude === 'object' && !Array.isArray(optionsInclude)) {
5656
includeType = optionsInclude.type
5757
includeChunks = optionsInclude.chunks
5858
includeEntryPoints = optionsInclude.entries

0 commit comments

Comments
 (0)