MCPcopy
hub / github.com/webpack/webpack / addValueDependency

Method addValueDependency

lib/DefinePlugin.js:450–460  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

448 * @param {string} key key
449 */
450 const addValueDependency = (key) => {
451 const buildInfo =
452 /** @type {NormalModuleBuildInfo} */
453 (parser.state.module.buildInfo);
454 /** @type {NonNullable<NormalModuleBuildInfo["valueDependencies"]>} */
455 (buildInfo.valueDependencies).set(
456 VALUE_DEP_PREFIX + key,
457 /** @type {ValueCacheVersion} */
458 (compilation.valueCacheVersions.get(VALUE_DEP_PREFIX + key))
459 );
460 };
461
462 /**
463 * With value dependency.

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected