Skip to content

Commit 80f472f

Browse files
atscottalxhub
authored andcommitted
refactor(core): provide zone token in prod as well (angular#56197)
This allows us to make decisions based on whether zone is provided for when zoneless is the default. PR Close angular#56197
1 parent 31f3975 commit 80f472f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/change_detection/scheduling/ng_zone_scheduling.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ export function provideZoneChangeDetection(options?: NgZoneOptions): Environment
159159
ignoreChangesOutsideZone,
160160
});
161161
return makeEnvironmentProviders([
162-
typeof ngDevMode === 'undefined' || ngDevMode
163-
? [{provide: PROVIDED_NG_ZONE, useValue: true}]
164-
: [],
162+
{provide: PROVIDED_NG_ZONE, useValue: true},
165163
{provide: ZONELESS_ENABLED, useValue: false},
166164
zoneProviders,
167165
]);

0 commit comments

Comments
 (0)