MCPcopy
hub / github.com/webpack/webpack / setUsedForSideEffectsOnly

Method setUsedForSideEffectsOnly

lib/ExportsInfo.js:542–548  ·  view source on GitHub ↗

* Sets used for side effects only. * @param {RuntimeSpec} runtime the runtime * @returns {boolean} true, when something changed

(runtime)

Source from the content-addressed store, hash-verified

540 * @returns {boolean} true, when something changed
541 */
542 setUsedForSideEffectsOnly(runtime) {
543 return this._sideEffectsOnlyInfo.setUsedConditionally(
544 (used) => used === UsageState.Unused,
545 UsageState.Used,
546 runtime
547 );
548 }
549
550 /**
551 * Checks whether this exports info is used.

Callers 2

addRuntimeModuleMethod · 0.80

Calls 1

setUsedConditionallyMethod · 0.80

Tested by

no test coverage detected