We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f27e92 commit 2f58138Copy full SHA for 2f58138
1 file changed
lib/Chunk.js
@@ -205,9 +205,9 @@ class Chunk {
205
other.chunks.length = 0;
206
207
other.blocks.forEach(b => {
208
- b.chunks = (b.chunks || [this]).map(c => {
+ 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);
0 commit comments