From 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2017 15:10:37 +0200 Subject: fix build issues and add typedoc --- node_modules/webpack/lib/Stats.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node_modules/webpack/lib/Stats.js') diff --git a/node_modules/webpack/lib/Stats.js b/node_modules/webpack/lib/Stats.js index f7e21777a..0b88faa64 100644 --- a/node_modules/webpack/lib/Stats.js +++ b/node_modules/webpack/lib/Stats.js @@ -95,6 +95,7 @@ class Stats { const showProvidedExports = optionOrFallback(options.providedExports, !forToString); const showChildren = optionOrFallback(options.children, true); const showSource = optionOrFallback(options.source, !forToString); + const showModuleTrace = optionOrFallback(options.moduleTrace, true); const showErrors = optionOrFallback(options.errors, true); const showErrorDetails = optionOrFallback(options.errorDetails, !forToString); const showWarnings = optionOrFallback(options.warnings, true); @@ -164,7 +165,7 @@ class Stats { text += e.message; if(showErrorDetails && e.details) text += `\n${e.details}`; if(showErrorDetails && e.missing) text += e.missing.map(item => `\n[${item}]`).join(""); - if(e.dependencies && e.origin) { + if(showModuleTrace && e.dependencies && e.origin) { text += `\n @ ${e.origin.readableIdentifier(requestShortener)}`; e.dependencies.forEach(dep => { if(!dep.loc) return; -- cgit v1.2.3