MCPcopy
hub / github.com/webpack/webpack / getPlatform

Function getPlatform

test/Platform.unittest.js:10–16  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

8 * @returns {EXPECTED_ANY} resolved platform target properties
9 */
10const getPlatform = (target) => {
11 const normalized = getNormalizedWebpackOptions(
12 /** @type {EXPECTED_ANY} */ ({ target })
13 );
14 return applyWebpackOptionsDefaults(/** @type {EXPECTED_ANY} */ (normalized))
15 .platform;
16};
17
18describe("platform", () => {
19 describe("universal", () => {

Callers 1

Calls 2

Tested by

no test coverage detected