mirror of
https://github.com/facebook/react.git
synced 2026-02-25 13:13:03 +00:00
Adds the concept of "plugins" to the inspected element payload. Also adds the first plugin, one that resolves StyleX atomic style names to their values and displays them as a unified style object (rather than a nested array of objects and booleans). Source file names are displayed first, in dim color, followed by an ordered set of resolved style values. For builds with the new feature flag disabled, there is no observable change. A next step to build on top of this could be to make the style values editable, but change the logic such that editing one directly added an inline style to the item (rather than modifying the stylex class– which may be shared between multiple other components).
35 lines
1.4 KiB
JavaScript
35 lines
1.4 KiB
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.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
/************************************************************************
|
|
* This file is forked between different DevTools implementations.
|
|
* It should never be imported directly!
|
|
* It should always be imported from "react-devtools-feature-flags".
|
|
************************************************************************/
|
|
|
|
export const consoleManagedByDevToolsDuringStrictMode = false;
|
|
export const enableLogger = true;
|
|
export const enableNamedHooksFeature = true;
|
|
export const enableProfilerChangedHookIndices = true;
|
|
export const enableStyleXFeatures = true;
|
|
export const isInternalFacebookBuild = true;
|
|
|
|
/************************************************************************
|
|
* Do not edit the code below.
|
|
* It ensures this fork exports the same types as the default flags file.
|
|
************************************************************************/
|
|
|
|
import typeof * as FeatureFlagsType from './DevToolsFeatureFlags.default';
|
|
import typeof * as ExportsType from './DevToolsFeatureFlags.core-fb';
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
type Check<_X, Y: _X, X: Y = _X> = null;
|
|
// eslint-disable-next-line no-unused-expressions
|
|
(null: Check<ExportsType, FeatureFlagsType>);
|