* Processes the provided chunk. * @param {Chunk} chunk the chunk which will be disconnected * @returns {void}
(chunk)
| 418 | * @returns {void} |
| 419 | */ |
| 420 | disconnectChunk(chunk) { |
| 421 | const cgc = this._getChunkGraphChunk(chunk); |
| 422 | for (const module of cgc.modules) { |
| 423 | const cgm = this._getChunkGraphModule(module); |
| 424 | cgm.chunks.delete(chunk); |
| 425 | } |
| 426 | cgc.modules.clear(); |
| 427 | chunk.disconnectFromGroups(); |
| 428 | ChunkGraph.clearChunkGraphForChunk(chunk); |
| 429 | } |
| 430 | |
| 431 | /** |
| 432 | * Processes the provided chunk. |
no test coverage detected