MCPcopy
hub / github.com/webpack/webpack / usesFullHash

Function usesFullHash

lib/RuntimePlugin.js:122–125  ·  view source on GitHub ↗
(template)

Source from the content-addressed store, hash-verified

120 * @returns {boolean} true when it references the compilation `[fullhash]`/`[hash]`
121 */
122const usesFullHash = (template) => {
123 const kinds = getPresentKinds(template);
124 return kinds.has("fullhash") || kinds.has("hash");
125};
126
127// `[fullhash:<digest>]`/`[hash:<digest>]` — a non-numeric first arg is a digest (a
128// numeric one is just a length). The re-encoded full hash must be inlined post-hash

Callers 1

applyMethod · 0.85

Calls 2

getPresentKindsFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected