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 af6c6d4 commit fd512b8Copy full SHA for fd512b8
packages/angular_devkit/build_angular/plugins/webpack/analytics.ts
@@ -123,8 +123,11 @@ export class NgBuildAnalyticsPlugin {
123
}
124
protected _getDimensions(stats: Stats) {
125
const dimensions: (string | number)[] = [];
126
- // Adding commas before and after so the regex are easier to define.
127
- dimensions[analytics.NgCliAnalyticsDimensions.BuildErrors] = `,${this._stats.errors.join()},`;
+
+ if (this._stats.errors.length) {
128
+ // Adding commas before and after so the regex are easier to define filters.
129
+ dimensions[analytics.NgCliAnalyticsDimensions.BuildErrors] = `,${this._stats.errors.join()},`;
130
+ }
131
132
return dimensions;
133
0 commit comments