Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Flow/Lint fix"
This reverts commit 812beec.
  • Loading branch information
Brian Vaughn committed Jun 10, 2018
commit 03fede754c1f5087106c8ec414a17feeddf56e21
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ module.exports = {
spyOnDev: true,
spyOnDevAndProd: true,
spyOnProd: true,
__PROFILER__: true,
},
};
3 changes: 1 addition & 2 deletions packages/shared/ReactFeatureFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ export const warnAboutDeprecatedLifecycles = false;
export const warnAboutLegacyContextAPI = false;

// Gather advanced timing metrics for Profiler subtrees.
export const enableProfilerTimer =
__DEV__ || process.env.REACT_ENABLE_PROFILING === true;
export const enableProfilerTimer = __DEV__ || __PROFILER__;

// Fires getDerivedStateFromProps for state *or* props changes
export const fireGetDerivedStateFromPropsOnStateUpdates = true;
Expand Down
3 changes: 1 addition & 2 deletions packages/shared/forks/ReactFeatureFlags.native-fabric-oss.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ export const enableSuspense = false;
export const warnAboutDeprecatedLifecycles = false;
export const warnAboutLegacyContextAPI = false;
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
export const enableProfilerTimer =
__DEV__ || process.env.REACT_ENABLE_PROFILING;
export const enableProfilerTimer = __DEV__ || __PROFILER__;
export const fireGetDerivedStateFromPropsOnStateUpdates = true;

// Only used in www builds.
Expand Down
3 changes: 1 addition & 2 deletions packages/shared/forks/ReactFeatureFlags.native-oss.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ export const enableUserTimingAPI = __DEV__;
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
export const warnAboutDeprecatedLifecycles = false;
export const warnAboutLegacyContextAPI = false;
export const enableProfilerTimer =
__DEV__ || process.env.REACT_ENABLE_PROFILING;
export const enableProfilerTimer = __DEV__ || __PROFILER__;
export const fireGetDerivedStateFromPropsOnStateUpdates = true;

// Only used in www builds.
Expand Down
2 changes: 1 addition & 1 deletion scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function getPlugins(
// Turn __DEV__ and process.env checks into constants.
replace({
__DEV__: isProduction ? 'false' : 'true',
'process.env.REACT_ENABLE_PROFILING': isProfiling ? 'true' : 'false',
__PROFILER__: isProfiling ? 'true' : 'false',
'process.env.NODE_ENV': isProduction ? "'production'" : "'development'",
}),
// We still need CommonJS for external deps like object-assign.
Expand Down