MCPcopy
hub / github.com/webpack/webpack / applyInfrastructureLoggingDefaults

Function applyInfrastructureLoggingDefaults

lib/config/defaults.js:2446–2455  ·  view source on GitHub ↗
(infrastructureLogging)

Source from the content-addressed store, hash-verified

2444 * @returns {void}
2445 */
2446const applyInfrastructureLoggingDefaults = (infrastructureLogging) => {
2447 F(infrastructureLogging, "stream", () => process.stderr);
2448 const tty =
2449 /** @type {NonNullable<InfrastructureLogging["stream"]>} */
2450 (infrastructureLogging.stream).isTTY && process.env.TERM !== "dumb";
2451 D(infrastructureLogging, "level", "info");
2452 D(infrastructureLogging, "debug", false);
2453 D(infrastructureLogging, "colors", tty);
2454 D(infrastructureLogging, "appendOnly", !tty);
2455};
2456
2457module.exports.DEFAULTS = DEFAULTS;
2458module.exports.applyWebpackOptionsBaseDefaults =

Callers 1

Calls 2

FFunction · 0.70
DFunction · 0.70

Tested by

no test coverage detected