MCPcopy
hub / github.com/webpack/webpack / setUsedInUnknownWay

Method setUsedInUnknownWay

lib/ExportsInfo.js:482–497  ·  view source on GitHub ↗

* Sets used in unknown way. * @param {RuntimeSpec} runtime the runtime * @returns {boolean} true, when something changed

(runtime)

Source from the content-addressed store, hash-verified

480 * @returns {boolean} true, when something changed
481 */
482 setUsedInUnknownWay(runtime) {
483 let changed = false;
484 for (const exportInfo of this._exports.values()) {
485 if (exportInfo.setUsedInUnknownWay(runtime)) {
486 changed = true;
487 }
488 }
489 if (this._redirectTo !== undefined) {
490 if (this._redirectTo.setUsedInUnknownWay(runtime)) {
491 changed = true;
492 }
493 } else if (this._otherExportsInfo.setUsedInUnknownWay(runtime)) {
494 changed = true;
495 }
496 return changed;
497 }
498
499 /**
500 * Sets used without info.

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.45
setUsedInUnknownWayMethod · 0.45

Tested by

no test coverage detected