react-esm
Version:
React is a JavaScript library for building user interfaces.
34 lines (31 loc) • 1.37 kB
JavaScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
import invariant from 'shared/invariant';
// Re-export dynamic flags from the fbsource version.
export const {
debugRenderPhaseSideEffects
} = require('ReactFeatureFlags'); // The rest of the flags are static for better dead code elimination.
export const enableUserTimingAPI = __DEV__;
export const enableProfilerTimer = __PROFILE__;
export const enableSchedulerTracing = __PROFILE__;
export const enableSuspenseServerRenderer = false;
export const enableStableConcurrentModeAPIs = false;
export const warnAboutShorthandPropertyCollision = false;
export const enableSchedulerDebugging = false;
export const debugRenderPhaseSideEffectsForStrictMode = true;
export const disableInputAttributeSyncing = false;
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
export const warnAboutDeprecatedLifecycles = true;
export const warnAboutDeprecatedSetNativeProps = true; // Only used in www builds.
export function addUserTimingListener() {
invariant(false, 'Not implemented.');
} // Flow magic to verify the exports of this file match the original version.
// eslint-disable-next-line no-unused-vars
// eslint-disable-next-line no-unused-expressions
null;