MCPcopy
hub / github.com/webpack/webpack / compareReferences

Method compareReferences

lib/Compilation.js:2879–2889  ·  view source on GitHub ↗
(module, references)

Source from the content-addressed store, hash-verified

2877 * @returns {boolean} true, when the references differ
2878 */
2879 const compareReferences = (module, references) => {
2880 if (references === undefined) return true;
2881 for (const connection of moduleGraph.getOutgoingConnections(module)) {
2882 const d = connection.dependency;
2883 if (!d) continue;
2884 const entry = references.get(d);
2885 if (entry === undefined) continue;
2886 if (entry !== connection.module) return false;
2887 }
2888 return true;
2889 };
2890
2891 const modulesWithoutCache = new Set(modules);
2892 for (const [module, cachedMemCache] of moduleMemCacheCache) {

Callers

nothing calls this directly

Calls 6

getModuleIdMethod · 0.80
getBlockChunkGroupMethod · 0.80
applyMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected