Skip to content

Commit 1e2d8ec

Browse files
committed
Handle typeof option === "function" case
1 parent 3f8a94f commit 1e2d8ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/optimize/SplitChunksPlugin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ module.exports = class SplitChunksPlugin {
177177
r
178178
);
179179
if (result.name) result.getName = () => result.name;
180+
if (result.chunks) {
181+
result.chunksFilter = SplitChunksPlugin.normalizeChunksFilter(
182+
result.chunks
183+
);
184+
}
180185
results.push(result);
181186
}
182187
}

0 commit comments

Comments
 (0)