MCPcopy
hub / github.com/webpack/webpack / getResolvedHash

Function getResolvedHash

lib/FileSystemInfo.js:1206–1210  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

1204 * @returns {string | null | undefined} the resolved entry
1205 */
1206const getResolvedHash = (entry) => {
1207 if (entry === null) return null;
1208 if (entry.resolved !== undefined) return entry.resolved;
1209 return entry.symlinks === undefined ? entry.hash : undefined;
1210};
1211
1212/**
1213 * Adds the provided source to the snapshot optimization.

Callers 3

getContextHashMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected