File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 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 {
8282 * The idea is that unless we are doing production build where we explicitly
8383 * set `ngDevMode == false` we should be helping the developer by providing
8484 * 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.
8588 */
86- if ( typeof global [ ' ngDevMode' ] === 'undefined' || global [ ' ngDevMode' ] ) {
89+ if ( typeof ngDevMode === 'undefined' || ngDevMode ) {
8790 ngDevModeResetPerfCounters ( ) ;
8891}
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ declare global {
1212 const ngI18nClosureMode : boolean ;
1313}
1414
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' ) {
1620 // Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.
1721 global [ 'ngI18nClosureMode' ] =
1822 // TODO(FW-1250): validate that this actually, you know, works.
You can’t perform that action at this time.
0 commit comments