* 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)
| 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. |
no test coverage detected