MCPcopy
hub / github.com/webpack/webpack / setAllKnownExportsUsed

Method setAllKnownExportsUsed

lib/ExportsInfo.js:526–535  ·  view source on GitHub ↗

* Sets all known exports used. * @param {RuntimeSpec} runtime the runtime * @returns {boolean} true, when something changed

(runtime)

Source from the content-addressed store, hash-verified

524 * @returns {boolean} true, when something changed
525 */
526 setAllKnownExportsUsed(runtime) {
527 let changed = false;
528 for (const exportInfo of this._exports.values()) {
529 if (!exportInfo.provided) continue;
530 if (exportInfo.setUsed(UsageState.Used, runtime)) {
531 changed = true;
532 }
533 }
534 return changed;
535 }
536
537 /**
538 * Sets used for side effects only.

Callers 3

applyMethod · 0.80
finishEntryModuleMethod · 0.80

Calls 2

setUsedMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected