* Connects chunk and entry module. * @param {Chunk} chunk the new chunk * @param {Module} module the entry module * @param {Entrypoint} entrypoint the chunk group which must be loaded before the module is executed * @returns {void}
(chunk, module, entrypoint)
| 1172 | * @returns {void} |
| 1173 | */ |
| 1174 | connectChunkAndEntryModule(chunk, module, entrypoint) { |
| 1175 | const cgm = this._getChunkGraphModule(module); |
| 1176 | const cgc = this._getChunkGraphChunk(chunk); |
| 1177 | if (cgm.entryInChunks === undefined) { |
| 1178 | cgm.entryInChunks = new Set(); |
| 1179 | } |
| 1180 | cgm.entryInChunks.add(chunk); |
| 1181 | cgc.entryModules.set(module, entrypoint); |
| 1182 | } |
| 1183 | |
| 1184 | /** |
| 1185 | * Connects chunk and runtime module. |
no test coverage detected