MCPcopy
hub / github.com/webpack/webpack / containsModule

Method containsModule

lib/Chunk.js:258–264  ·  view source on GitHub ↗

* Checks whether this chunk contains the module. * @deprecated * @param {Module} module the module * @returns {boolean} true, if the chunk contains the module

(module)

Source from the content-addressed store, hash-verified

256 * @returns {boolean} true, if the chunk contains the module
257 */
258 containsModule(module) {
259 return ChunkGraph.getChunkGraphForChunk(
260 this,
261 "Chunk.containsModule",
262 "DEP_WEBPACK_CHUNK_CONTAINS_MODULE"
263 ).isModuleInChunk(module, this);
264 }
265
266 /**
267 * Returns the modules for this chunk.

Callers 1

webpack.config.jsFile · 0.80

Calls 2

isModuleInChunkMethod · 0.80
getChunkGraphForChunkMethod · 0.80

Tested by

no test coverage detected