Skip to content

Commit aaa9286

Browse files
committed
remove isChunk check
1 parent 6d68cef commit aaa9286

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

index.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -354,17 +354,7 @@ function getPath(compilation, source, chunk) {
354354
}
355355
}
356356

357-
function isChunk(chunk, error) {
358-
if (!(chunk instanceof Chunk)) {
359-
throw new Error(typeof error === 'string' ? error : 'chunk is not an instance of Chunk');
360-
}
361-
362-
return true;
363-
}
364-
365357
function forEachChunkModule(chunk, cb) {
366-
isChunk(chunk);
367-
368358
// webpack >= 3.x.x
369359
if (typeof chunk.forEachModule === 'function') {
370360
chunk.forEachModule(cb);
@@ -379,8 +369,6 @@ function forEachChunkModule(chunk, cb) {
379369
}
380370

381371
function getChunkModulesArray(chunk) {
382-
isChunk(chunk);
383-
384372
var arr = [];
385373

386374
// webpack >= 3.x.x

0 commit comments

Comments
 (0)