We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f58138 commit dd5eb39Copy full SHA for dd5eb39
1 file changed
lib/Chunk.js
@@ -207,14 +207,15 @@ class Chunk {
207
other.blocks.forEach(b => {
208
b.chunks = b.chunks ? b.chunks.map(c => {
209
return c === other ? this : c;
210
- }, this) : [this];
+ }) : [this];
211
b.chunkReason = reason;
212
this.addBlock(b);
213
- }, this);
+ });
214
other.blocks.length = 0;
215
+
216
other.origins.forEach(origin => {
217
this.origins.push(origin);
218
219
this.origins.forEach(origin => {
220
if(!origin.reasons) {
221
origin.reasons = [reason];
0 commit comments