MCPcopy
hub / github.com/webpack/webpack / setUsedWithoutInfo

Method setUsedWithoutInfo

lib/ExportsInfo.js:504–519  ·  view source on GitHub ↗

* Sets used without info. * @param {RuntimeSpec} runtime the runtime * @returns {boolean} true, when something changed

(runtime)

Source from the content-addressed store, hash-verified

502 * @returns {boolean} true, when something changed
503 */
504 setUsedWithoutInfo(runtime) {
505 let changed = false;
506 for (const exportInfo of this._exports.values()) {
507 if (exportInfo.setUsedWithoutInfo(runtime)) {
508 changed = true;
509 }
510 }
511 if (this._redirectTo !== undefined) {
512 if (this._redirectTo.setUsedWithoutInfo(runtime)) {
513 changed = true;
514 }
515 } else if (this._otherExportsInfo.setUsedWithoutInfo(runtime)) {
516 changed = true;
517 }
518 return changed;
519 }
520
521 /**
522 * Sets all known exports used.

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.45
setUsedWithoutInfoMethod · 0.45

Tested by

no test coverage detected