mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
c080537a7b
* shared/src -> shared It's not a real package and doesn't even have package.json. This will also make importing less weird if we drop Haste. * Get rid of shared/utils Moved event-specific into shared/event. Moved rest to the root since distinction has always been pretty arbitrary. * Fix references to old shared/src paths
39 lines
971 B
JavaScript
39 lines
971 B
JavaScript
/**
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @providesModule ReactFeatureFlags
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
export type FeatureFlags = {|
|
|
enableAsyncSubtreeAPI: boolean,
|
|
enableAsyncSchedulingByDefaultInReactDOM: boolean,
|
|
enableMutatingReconciler: boolean,
|
|
enableNoopReconciler: boolean,
|
|
enablePersistentReconciler: boolean,
|
|
|};
|
|
|
|
var ReactFeatureFlags: FeatureFlags = {
|
|
enableAsyncSubtreeAPI: true,
|
|
enableAsyncSchedulingByDefaultInReactDOM: false,
|
|
// Mutating mode (React DOM, React ART, React Native):
|
|
enableMutatingReconciler: true,
|
|
// Experimental noop mode (currently unused):
|
|
enableNoopReconciler: false,
|
|
// Experimental persistent mode (CS):
|
|
enablePersistentReconciler: false,
|
|
};
|
|
|
|
if (__DEV__) {
|
|
if (Object.freeze) {
|
|
Object.freeze(ReactFeatureFlags);
|
|
}
|
|
}
|
|
|
|
module.exports = ReactFeatureFlags;
|