MCPcopy
hub / github.com/webpack/webpack / isModuleInChunk

Method isModuleInChunk

lib/ChunkGraph.js:565–568  ·  view source on GitHub ↗

* Checks whether this chunk graph is module in chunk. * @param {Module} module the checked module * @param {Chunk} chunk the checked chunk * @returns {boolean} true, if the chunk contains the module

(module, chunk)

Source from the content-addressed store, hash-verified

563 * @returns {boolean} true, if the chunk contains the module
564 */
565 isModuleInChunk(module, chunk) {
566 const cgc = this._getChunkGraphChunk(chunk);
567 return cgc.modules.has(module);
568 }
569
570 /**
571 * Checks whether this chunk graph is module in chunk group.

Callers 15

isModuleInChunkGroupMethod · 0.95
processBlockFunction · 0.80
processQueueFunction · 0.80
addChunkMethod · 0.80
isInChunkMethod · 0.80
addModuleMethod · 0.80
containsModuleMethod · 0.80
hoistModulesInChunksMethod · 0.80
applyMethod · 0.80
_tryToAddMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
hasMethod · 0.45

Tested by

no test coverage detected