MCPcopy
hub / github.com/webpack/webpack / isEntryModuleInChunk

Method isEntryModuleInChunk

lib/ChunkGraph.js:1162–1165  ·  view source on GitHub ↗

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

(module, chunk)

Source from the content-addressed store, hash-verified

1160 * @returns {boolean} true, if the chunk contains the module as entry
1161 */
1162 isEntryModuleInChunk(module, chunk) {
1163 const cgc = this._getChunkGraphChunk(chunk);
1164 return cgc.entryModules.has(module);
1165 }
1166
1167 /**
1168 * Connects chunk and entry module.

Callers 2

isNotAEntryModuleFunction · 0.80
applyMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
hasMethod · 0.45

Tested by

no test coverage detected