mirror of https://github.com/webpack/webpack.git
avoid printing undefined when there is no chunk reason
This commit is contained in:
parent
5c81bc1ce3
commit
a84de283b2
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue