refactor(@angular-devkit/build-angular): remove branch that checks for ɵmod

Under VE this symbol exists in ngfactories and hence it is not safe to use it to determine if the app is running under ivy
This commit is contained in:
Alan Agius 2019-10-16 14:40:15 +02:00 committed by vikerman
parent 3380d67a1e
commit 90a29255da

View File

@ -163,10 +163,8 @@ export class NgBuildAnalyticsPlugin {
this._stats.numberOfComponents += numIvyComponents;
// Check whether this is an Ivy app so that it can reported as part of analytics.
if (!this._stats.isIvy) {
if (numIvyComponents > 0 || module._source.source().includes('ɵmod')) {
this._stats.isIvy = true;
}
if (!this._stats.isIvy && numIvyComponents > 0) {
this._stats.isIvy = true;
}
}
}