MCPcopy
hub / github.com/webpack/webpack / findTarget

Method findTarget

lib/ExportsInfo.js:1580–1582  ·  view source on GitHub ↗

* Returns the target, undefined when there is no target, false when no target is valid. * @param {ModuleGraph} moduleGraph the module graph * @param {ValidTargetModuleFilter} validTargetModuleFilter a valid target module * @returns {TargetItemWithoutConnection | null | undefined | false} the t

(moduleGraph, validTargetModuleFilter)

Source from the content-addressed store, hash-verified

1578 * @returns {TargetItemWithoutConnection | null | undefined | false} the target, undefined when there is no target, false when no target is valid
1579 */
1580 findTarget(moduleGraph, validTargetModuleFilter) {
1581 return this._findTarget(moduleGraph, validTargetModuleFilter, new Set());
1582 }
1583
1584 /**
1585 * Returns the target, undefined when there is no target, false when no target is valid.

Callers 3

renderStartupMethod · 0.80
getFinalBindingFunction · 0.80

Calls 1

_findTargetMethod · 0.95

Tested by

no test coverage detected