MCPcopy
hub / github.com/webpack/webpack / compareModulesById

Function compareModulesById

lib/util/comparators.js:195–199  ·  view source on GitHub ↗
(chunkGraph, a, b)

Source from the content-addressed store, hash-verified

193 * @returns {-1 | 0 | 1} compare result
194 */
195const compareModulesById = (chunkGraph, a, b) =>
196 compareIds(
197 /** @type {ModuleId} */ (chunkGraph.getModuleId(a)),
198 /** @type {ModuleId} */ (chunkGraph.getModuleId(b))
199 );
200
201/**
202 * Compares the provided values and returns their ordering.

Callers 8

getFakeMapMethod · 0.85
applyMethod · 0.85
getChunkModuleMapsMethod · 0.85
getChunkModuleIdMapMethod · 0.85
generateMethod · 0.85
applyMethod · 0.85

Calls 2

compareIdsFunction · 0.85
getModuleIdMethod · 0.80

Tested by

no test coverage detected