File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +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 ) ;
9899 const showErrors = optionOrFallback ( options . errors , true ) ;
99100 const showErrorDetails = optionOrFallback ( options . errorDetails , ! forToString ) ;
100101 const showWarnings = optionOrFallback ( options . warnings , true ) ;
@@ -164,7 +165,7 @@ class Stats {
164165 text += e . message ;
165166 if ( showErrorDetails && e . details ) text += `\n${ e . details } ` ;
166167 if ( showErrorDetails && e . missing ) text += e . missing . map ( item => `\n[${ item } ]` ) . join ( "" ) ;
167- if ( e . dependencies && e . origin ) {
168+ if ( showStackTrace && e . dependencies && e . origin ) {
168169 text += `\n @ ${ e . origin . readableIdentifier ( requestShortener ) } ` ;
169170 e . dependencies . forEach ( dep => {
170171 if ( ! dep . loc ) return ;
You can’t perform that action at this time.
0 commit comments