MCPcopy
hub / github.com/webpack/webpack / getLongModuleName

Function getLongModuleName

lib/ids/IdHelpers.js:109–118  ·  view source on GitHub ↗
(
	shortName,
	module,
	context,
	hashFunction,
	associatedObjectForCache
)

Source from the content-addressed store, hash-verified

107 * @returns {string} long module name
108 */
109const getLongModuleName = (
110 shortName,
111 module,
112 context,
113 hashFunction,
114 associatedObjectForCache
115) => {
116 const fullName = getFullModuleName(module, context, associatedObjectForCache);
117 return `${shortName}?${getHash(fullName, 4, hashFunction)}`;
118};
119
120/**
121 * Gets full module name.

Callers 2

applyMethod · 0.85
getLongChunkNameFunction · 0.85

Calls 2

getFullModuleNameFunction · 0.85
getHashFunction · 0.70

Tested by

no test coverage detected