MCPcopy
hub / github.com/webpack/webpack / hasModuleInGraph

Method hasModuleInGraph

lib/Chunk.js:459–466  ·  view source on GitHub ↗

* Checks whether this chunk contains a matching module in the graph. * @deprecated * @param {ModuleFilterPredicate} filterFn predicate function used to filter modules * @param {ChunkFilterPredicate=} filterChunkFn predicate function used to filter chunks * @returns {boolean} return true if m

(filterFn, filterChunkFn)

Source from the content-addressed store, hash-verified

457 * @returns {boolean} return true if module exists in graph
458 */
459 hasModuleInGraph(filterFn, filterChunkFn) {
460 const chunkGraph = ChunkGraph.getChunkGraphForChunk(
461 this,
462 "Chunk.hasModuleInGraph",
463 "DEP_WEBPACK_CHUNK_HAS_MODULE_IN_GRAPH"
464 );
465 return chunkGraph.hasModuleInGraph(this, filterFn, filterChunkFn);
466 }
467
468 /**
469 * Returns the chunk map information.

Callers 8

applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
webpack.config.jsFile · 0.45
webpack.config.jsFile · 0.45

Calls 1

getChunkGraphForChunkMethod · 0.80

Tested by

no test coverage detected