Skip to content

Commit d0bb00a

Browse files
committed
Prevent duplicate chunk IDs
1 parent be30309 commit d0bb00a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,12 @@ SubresourceIntegrityPlugin.prototype.processChunk = function processChunk(
226226
chunk, compilation, assets
227227
) {
228228
var self = this;
229-
var depChunkIds = [];
230229
var newAsset;
231230
var hashByChunkId = {};
232231

233232
function recurse(childChunk) {
233+
var depChunkIds = [];
234+
234235
if (hashByChunkId[childChunk.id]) {
235236
return [];
236237
}

0 commit comments

Comments
 (0)