We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc36ac3 commit 5fa6caaCopy full SHA for 5fa6caa
1 file changed
lib/Chunk.js
@@ -175,12 +175,7 @@ class Chunk {
175
}
176
177
const otherModules = other.modules.slice();
178
- otherModules.forEach(m => {
179
- m.removeChunk(other);
180
- m.addChunk(this);
181
- this.addModule(m);
182
- m.rewriteChunkInReasons(other, [this]);
183
- }, this);
+ otherModules.forEach(m => other.moveModule(m, this));
184
other.modules.length = 0;
185
186
const moveChunks = (chunks, kind, onChunk) => {
0 commit comments