mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
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:
parent
3380d67a1e
commit
90a29255da
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user