MCPcopy
hub / github.com/webpack/webpack / getTarget

Method getTarget

lib/ExportsInfo.js:1641–1645  ·  lib/ExportsInfo.js::ExportInfo.getTarget

* Returns the target. * @param {ModuleGraph} moduleGraph the module graph * @param {ResolveTargetFilter} resolveTargetFilter filter function to further resolve target * @returns {TargetItemWithConnection | undefined} the target

(moduleGraph, resolveTargetFilter = RETURNS_TRUE)

Source from the content-addressed store, hash-verified

1639 * @returns {TargetItemWithConnection | undefined} the target
1640 */
1641 getTarget(moduleGraph, resolveTargetFilter = RETURNS_TRUE) {
1642 const result = this._getTarget(moduleGraph, resolveTargetFilter, undefined);
1643 if (result === CIRCULAR) return;
1644 return result;
1645 }
1646
1647 /**
1648 * Returns the target.

Callers 8

getTerminalBindingMethod · 0.95
getExportsTypeMethod · 0.80
printExportsInfoToSourceFunction · 0.80
mergeExportsMethod · 0.80
applyMethod · 0.80
handlerMethod · 0.80
getFinalBindingFunction · 0.80

Calls 1

_getTargetMethod · 0.95

Tested by

no test coverage detected