MCPcopy
hub / github.com/webpack/webpack / _getUnresolvedContextHash

Method _getUnresolvedContextHash

lib/FileSystemInfo.js:1762–1766  ·  view source on GitHub ↗

* Get unresolved context hash. * @private * @param {string} path context path * @param {(err?: WebpackError | null, contextHash?: ContextHash | null) => void} callback callback function * @returns {void}

(path, callback)

Source from the content-addressed store, hash-verified

1760 * @returns {void}
1761 */
1762 _getUnresolvedContextHash(path, callback) {
1763 const cache = this._contextHashes.get(path);
1764 if (cache !== undefined) return callback(null, cache);
1765 this.contextHashQueue.add(path, callback);
1766 }
1767
1768 /**
1769 * Returns context tsh.

Callers 2

_readContextHashMethod · 0.95
_resolveContextHashMethod · 0.95

Calls 3

callbackFunction · 0.50
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected