File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,10 @@ export function ngDevModeResetPerfCounters(): NgDevModePerfCounters {
82
82
* The idea is that unless we are doing production build where we explicitly
83
83
* set `ngDevMode == false` we should be helping the developer by providing
84
84
* as much early warning and errors as possible.
85
+ *
86
+ * NOTE: changes to the `ngDevMode` name must be synced with the CLI and
87
+ * possibly other third party tooling. Check with them before altering it.
85
88
*/
86
- if ( typeof global [ ' ngDevMode' ] === 'undefined' || global [ ' ngDevMode' ] ) {
89
+ if ( typeof ngDevMode === 'undefined' || ngDevMode ) {
87
90
ngDevModeResetPerfCounters ( ) ;
88
91
}
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ declare global {
12
12
const ngI18nClosureMode : boolean ;
13
13
}
14
14
15
- if ( typeof global [ 'ngI18nClosureMode' ] === 'undefined' ) {
15
+ /**
16
+ * NOTE: changes to the `ngI18nClosureMode` name must be synced with the CLI and
17
+ * possibly other third party tooling. Check with them before altering it.
18
+ */
19
+ if ( typeof ngI18nClosureMode === 'undefined' ) {
16
20
// Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.
17
21
global [ 'ngI18nClosureMode' ] =
18
22
// TODO(FW-1250): validate that this actually, you know, works.
You can’t perform that action at this time.
0 commit comments