avoid printing undefined when there is no chunk reason

This commit is contained in:
Tobias Koppers 2018-12-22 11:59:07 +01:00
parent 5c81bc1ce3
commit a84de283b2
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ const SIMPLE_PRINTERS = {
rendered ? green(formatFlag("rendered")) : undefined,
"chunk.recorded": (recorded, { formatFlag, green }) =>
recorded ? green(formatFlag("recorded")) : undefined,
"chunk.reason": (reason, { yellow }) => yellow(reason),
"chunk.reason": (reason, { yellow }) => (reason ? yellow(reason) : undefined),
"chunk.rootModules": (modules, context) => {
let maxModuleId = 0;
for (const module of modules) {