Skip to content

Commit 4131013

Browse files
author
Even Alander
committed
rename stats.stackTrace to stats.moduleTrace
1 parent 7e4310a commit 4131013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Stats.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Stats {
9595
const showProvidedExports = optionOrFallback(options.providedExports, !forToString);
9696
const showChildren = optionOrFallback(options.children, true);
9797
const showSource = optionOrFallback(options.source, !forToString);
98-
const showStackTrace = optionOrFallback(options.stackTrace, true);
98+
const showModuleTrace = optionOrFallback(options.moduleTrace, true);
9999
const showErrors = optionOrFallback(options.errors, true);
100100
const showErrorDetails = optionOrFallback(options.errorDetails, !forToString);
101101
const showWarnings = optionOrFallback(options.warnings, true);
@@ -165,7 +165,7 @@ class Stats {
165165
text += e.message;
166166
if(showErrorDetails && e.details) text += `\n${e.details}`;
167167
if(showErrorDetails && e.missing) text += e.missing.map(item => `\n[${item}]`).join("");
168-
if(showStackTrace && e.dependencies && e.origin) {
168+
if(showModuleTrace && e.dependencies && e.origin) {
169169
text += `\n @ ${e.origin.readableIdentifier(requestShortener)}`;
170170
e.dependencies.forEach(dep => {
171171
if(!dep.loc) return;

0 commit comments

Comments
 (0)