MCPcopy
hub / github.com/webpack/webpack / compareModulesByFullName

Function compareModulesByFullName

lib/util/comparators.js:343–347  ·  view source on GitHub ↗
(compiler, a, b)

Source from the content-addressed store, hash-verified

341 * @returns {-1 | 0 | 1} compare result
342 */
343const compareModulesByFullName = (compiler, a, b) => {
344 const aName = getFullModuleName(a, compiler.context, compiler.root);
345 const bName = getFullModuleName(b, compiler.context, compiler.root);
346 return compareIds(aName, bName);
347};
348
349/**
350 * Compares the provided values and returns their ordering.

Callers 8

renderChunkMethod · 0.85
renderMainMethod · 0.85
applyMethod · 0.85
applyMethod · 0.85
getModulesInOrderMethod · 0.85
applyMethod · 0.85
applyMethod · 0.85

Calls 2

getFullModuleNameFunction · 0.85
compareIdsFunction · 0.85

Tested by

no test coverage detected