MCPcopy
hub / github.com/webpack/webpack / _getPack

Method _getPack

lib/cache/PackFileCacheStrategy.js:1216–1221  ·  lib/cache/PackFileCacheStrategy.js::PackFileCacheStrategy._getPack

* Returns pack. * @returns {Promise<Pack>} pack

()

Source from the content-addressed store, hash-verified

1214 * @returns {Promise<Pack>} pack
1215 */
1216 _getPack() {
1217 if (this.packPromise === undefined) {
1218 this.packPromise = this.storePromise.then(() => this._openPack());
1219 }
1220 return this.packPromise;
1221 }
1222
1223 /**
1224 * Returns the pack.

Callers 2

storeMethod · 0.95
restoreMethod · 0.95

Calls 1

_openPackMethod · 0.95

Tested by

no test coverage detected