MCPcopy
hub / github.com/webpack/webpack / integrate

Method integrate

lib/Chunk.js:317–329  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

getChunkGraphForChunkMethod · 0.80
canChunksBeIntegratedMethod · 0.80
integrateChunksMethod · 0.80

Tested by

no test coverage detected