MCPcopy
hub / github.com/webpack/webpack / callback

Method callback

lib/FileSystemInfo.js:2737–2753  ·  lib/FileSystemInfo.js::FileSystemInfo.callback
(err, entry)

Source from the content-addressed store, hash-verified

2735 * @returns {void}
2736 */
2737 const callback = (err, entry) => {
2738 if (err) {
2739 if (this.logger) {
2740 this.logger.debug(
2741 `Error snapshotting context timestamp hash combination of ${path}: ${err.stack}`
2742 );
2743 }
2744 jobError();
2745 } else {
2746 contextTshs.set(
2747 path,
2748 /** @type {ResolvedContextTimestampAndHash | null} */
2749 (entry)
2750 );
2751 jobDone();
2752 }
2753 };
2754 if (cache !== undefined) {
2755 this._resolveContextTsh(cache, callback);
2756 } else {

Callers 13

a.jsFile · 0.80
file.jsFile · 0.80
ast-loader.jsFile · 0.80
loader.jsFile · 0.80
banner-loader.jsFile · 0.80
loader.jsFile · 0.80

Calls 2

debugMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected