MCPcopy
hub / github.com/webpack/webpack / getFiles

Method getFiles

lib/ChunkGroup.js:472–483  ·  view source on GitHub ↗

* Collects the emitted files produced by every chunk in the group. * @returns {string[]} the files contained this chunk group

()

Source from the content-addressed store, hash-verified

470 * @returns {string[]} the files contained this chunk group
471 */
472 getFiles() {
473 /** @type {Set<string>} */
474 const files = new Set();
475
476 for (const chunk of this.chunks) {
477 for (const file of chunk.files) {
478 files.add(file);
479 }
480 }
481
482 return [...files];
483 }
484
485 /**
486 * Disconnects this group from its parents, children, and chunks.

Callers 3

getEntrypointSizeMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected