* Disconnects chunk and entry module. * @param {Chunk} chunk the new chunk * @param {Module} module the entry module * @returns {void}
(chunk, module)
| 1230 | * @returns {void} |
| 1231 | */ |
| 1232 | disconnectChunkAndEntryModule(chunk, module) { |
| 1233 | const cgm = this._getChunkGraphModule(module); |
| 1234 | const cgc = this._getChunkGraphChunk(chunk); |
| 1235 | /** @type {EntryInChunks} */ |
| 1236 | (cgm.entryInChunks).delete(chunk); |
| 1237 | if (/** @type {EntryInChunks} */ (cgm.entryInChunks).size === 0) { |
| 1238 | cgm.entryInChunks = undefined; |
| 1239 | } |
| 1240 | cgc.entryModules.delete(module); |
| 1241 | } |
| 1242 | |
| 1243 | /** |
| 1244 | * Disconnects chunk and runtime module. |
no test coverage detected