File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,6 +81,6 @@ module.exports = {
8181 spyOnDev : true ,
8282 spyOnDevAndProd : true ,
8383 spyOnProd : true ,
84- __PROFILER__ : true ,
84+ __PROFILE__ : true ,
8585 } ,
8686} ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export const warnAboutDeprecatedLifecycles = false;
3737export const warnAboutLegacyContextAPI = false ;
3838
3939// Gather advanced timing metrics for Profiler subtrees.
40- export const enableProfilerTimer = __DEV__ || __PROFILER__ ;
40+ export const enableProfilerTimer = __DEV__ || __PROFILE__ ;
4141
4242// Fires getDerivedStateFromProps for state *or* props changes
4343export const fireGetDerivedStateFromPropsOnStateUpdates = true ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const enableSuspense = false;
2020export const warnAboutDeprecatedLifecycles = false ;
2121export const warnAboutLegacyContextAPI = false ;
2222export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__ ;
23- export const enableProfilerTimer = __DEV__ || __PROFILER__ ;
23+ export const enableProfilerTimer = __DEV__ || __PROFILE__ ;
2424export const fireGetDerivedStateFromPropsOnStateUpdates = true ;
2525
2626// Only used in www builds.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const enableUserTimingAPI = __DEV__;
2020export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__ ;
2121export const warnAboutDeprecatedLifecycles = false ;
2222export const warnAboutLegacyContextAPI = false ;
23- export const enableProfilerTimer = __DEV__ || __PROFILER__ ;
23+ export const enableProfilerTimer = __DEV__ || __PROFILE__ ;
2424export const fireGetDerivedStateFromPropsOnStateUpdates = true ;
2525
2626// Only used in www builds.
Original file line number Diff line number Diff line change 99
1010/* eslint-disable */
1111
12- declare var __PROFILER__ : boolean ;
12+ declare var __PROFILE__ : boolean ;
1313
1414declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any ; /*?{
1515 inject: ?((stuff: Object) => void)
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ function getPlugins(
290290 // Turn __DEV__ and process.env checks into constants.
291291 replace ( {
292292 __DEV__ : isProduction ? 'false' : 'true' ,
293- __PROFILER__ : isProfiling ? 'true' : 'false' ,
293+ __PROFILE__ : isProfiling ? 'true' : 'false' ,
294294 'process.env.NODE_ENV' : isProduction ? "'production'" : "'development'" ,
295295 } ) ,
296296 // We still need CommonJS for external deps like object-assign.
You can’t perform that action at this time.
0 commit comments