MCPcopy
hub / github.com/webpack/webpack / canBeIntegrated

Method canBeIntegrated

lib/Chunk.js:337–344  ·  view source on GitHub ↗

* Checks whether this chunk can be integrated with another chunk. * @deprecated * @param {Chunk} otherChunk the other chunk * @returns {boolean} true, if chunks could be integrated

(otherChunk)

Source from the content-addressed store, hash-verified

335 * @returns {boolean} true, if chunks could be integrated
336 */
337 canBeIntegrated(otherChunk) {
338 const chunkGraph = ChunkGraph.getChunkGraphForChunk(
339 this,
340 "Chunk.canBeIntegrated",
341 "DEP_WEBPACK_CHUNK_CAN_BE_INTEGRATED"
342 );
343 return chunkGraph.canChunksBeIntegrated(this, otherChunk);
344 }
345
346 /**
347 * Checks whether this chunk is empty.

Callers

nothing calls this directly

Calls 2

getChunkGraphForChunkMethod · 0.80
canChunksBeIntegratedMethod · 0.80

Tested by

no test coverage detected