MCPcopy
hub / github.com/webpack/webpack / _getUnresolvedContextTsh

Method _getUnresolvedContextTsh

lib/FileSystemInfo.js:1797–1801  ·  view source on GitHub ↗

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

(path, callback)

Source from the content-addressed store, hash-verified

1795 * @returns {void}
1796 */
1797 _getUnresolvedContextTsh(path, callback) {
1798 const cache = this._contextTshs.get(path);
1799 if (cache !== undefined) return callback(null, cache);
1800 this.contextTshQueue.add(path, callback);
1801 }
1802
1803 _createBuildDependenciesResolvers() {
1804 const resolveContext = createResolver({

Callers 1

_resolveContextTshMethod · 0.95

Calls 3

callbackFunction · 0.50
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected