We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac499c commit 19b7e2cCopy full SHA for 19b7e2c
1 file changed
packages/cli/lib/lib/webpack/run-webpack.js
@@ -113,16 +113,18 @@ function runCompiler(compiler) {
113
}
114
115
function showStats(stats) {
116
- if (stats.hasErrors()) {
117
- allFields(stats, 'errors')
118
- .map(stripLoaderPrefix)
119
- .forEach(msg => error(msg));
120
- }
+ if (stats) {
+ if (stats.hasErrors()) {
+ allFields(stats, 'errors')
+ .map(stripLoaderPrefix)
+ .forEach(msg => error(msg));
121
+ }
122
- if (stats.hasWarnings()) {
123
- allFields(stats, 'warnings')
124
125
- .forEach(msg => warn(msg));
+ if (stats.hasWarnings()) {
+ allFields(stats, 'warnings')
126
+ .forEach(msg => warn(msg));
127
128
129
130
return stats;
0 commit comments