MCPcopy
hub / github.com/webpack/webpack / _resolveTargetProperties

Method _resolveTargetProperties

test/harness/runner/index.js:259–268  ·  view source on GitHub ↗

* @returns {import("../../../lib/config/target").TargetProperties | false} target properties

()

Source from the content-addressed store, hash-verified

257 * @returns {import("../../../lib/config/target").TargetProperties | false} target properties
258 */
259 _resolveTargetProperties() {
260 const target = this.target;
261 const context = /** @type {string} */ (this.webpackOptions.context);
262
263 if (/** @type {EXPECTED_ANY} */ (target) === false) return false;
264
265 return typeof target === "string"
266 ? getTargetProperties(target, context)
267 : getTargetsProperties(/** @type {string[]} */ (target), context);
268 }
269
270 /**
271 * @returns {boolean} whether target is web

Callers 1

constructorMethod · 0.95

Calls 2

getTargetPropertiesFunction · 0.85
getTargetsPropertiesFunction · 0.85

Tested by

no test coverage detected