* Integrates another chunk into this chunk when possible. * @deprecated * @param {Chunk} otherChunk the other chunk * @returns {boolean} true, if the specified chunk has been integrated
(otherChunk)
| 315 | * @returns {boolean} true, if the specified chunk has been integrated |
| 316 | */ |
| 317 | integrate(otherChunk) { |
| 318 | const chunkGraph = ChunkGraph.getChunkGraphForChunk( |
| 319 | this, |
| 320 | "Chunk.integrate", |
| 321 | "DEP_WEBPACK_CHUNK_INTEGRATE" |
| 322 | ); |
| 323 | if (chunkGraph.canChunksBeIntegrated(this, otherChunk)) { |
| 324 | chunkGraph.integrateChunks(this, otherChunk); |
| 325 | return true; |
| 326 | } |
| 327 | |
| 328 | return false; |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Checks whether this chunk can be integrated with another chunk. |
nothing calls this directly
no test coverage detected