Skip to content

Commit 90a2925

Browse files
alan-agius4vikerman
authored andcommitted
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
1 parent 3380d67 commit 90a2925

File tree

1 file changed

+2
-4
lines changed
  • packages/angular_devkit/build_angular/plugins/webpack

1 file changed

+2
-4
lines changed

packages/angular_devkit/build_angular/plugins/webpack/analytics.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,8 @@ export class NgBuildAnalyticsPlugin {
163163
this._stats.numberOfComponents += numIvyComponents;
164164

165165
// Check whether this is an Ivy app so that it can reported as part of analytics.
166-
if (!this._stats.isIvy) {
167-
if (numIvyComponents > 0 || module._source.source().includes('ɵmod')) {
168-
this._stats.isIvy = true;
169-
}
166+
if (!this._stats.isIvy && numIvyComponents > 0) {
167+
this._stats.isIvy = true;
170168
}
171169
}
172170
}

0 commit comments

Comments
 (0)