MCPcopy
hub / github.com/webpack/webpack / createNextPack

Method createNextPack

lib/cache/PackFileCacheStrategy.js:310–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308 let i = 0;
309 let ignoreNextTimeTick = false;
310 const createNextPack = () => {
311 const loc = this._findLocation();
312 this.content[loc] = /** @type {EXPECTED_ANY} */ (null); // reserve
313 /** @type {PackItem} */
314 const pack = {
315 items: new Set(),
316 map: new Map(),
317 loc
318 };
319 packs.push(pack);
320 return pack;
321 };
322 let pack = createNextPack();
323 if (this.requestsTimeout !== undefined) {
324 clearTimeout(this.requestsTimeout);

Callers

nothing calls this directly

Calls 2

_findLocationMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected