We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5560eb commit f6d9e85Copy full SHA for f6d9e85
packages/angular_devkit/build_webpack/src/webpack/index.ts
@@ -52,11 +52,15 @@ export function runWebpack(
52
53
return createWebpack(config).pipe(
54
switchMap(webpackCompiler => new Observable<BuildResult>(obs => {
55
- const callback = (err: Error | undefined, stats: webpack.Stats) => {
+ const callback = (err?: Error, stats?: webpack.Stats) => {
56
if (err) {
57
return obs.error(err);
58
}
59
60
+ if (!stats) {
61
+ return;
62
+ }
63
+
64
// Log stats.
65
log(stats, config);
66
0 commit comments