Skip to content

Commit 1c52d38

Browse files
motiz88facebook-github-bot
authored andcommitted
Create a universal way to force-enable Fusebox at Buck build time (#43589)
Summary: Pull Request resolved: #43589 Changelog: [Internal] Adds a way of enabling the Fusebox backend in React Native regardless of the corresponding feature flags. This is only supported in the Buck build and not intended for use in OSS. Reviewed By: huntie Differential Revision: D55144502 fbshipit-source-id: 116cd30464acfbd3fafc503300f94cb238adeda8
1 parent 0267ca0 commit 1c52d38

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

packages/react-native/ReactCommon/jsinspector-modern/InspectorFlags.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,19 @@ void InspectorFlags::dangerouslyResetFlags() {
3737
const InspectorFlags::Values& InspectorFlags::loadFlagsAndAssertUnchanged()
3838
const {
3939
InspectorFlags::Values newValues = {
40-
.enableCxxInspectorPackagerConnection = ReactNativeFeatureFlags::
41-
inspectorEnableCxxInspectorPackagerConnection(),
40+
.enableCxxInspectorPackagerConnection =
41+
#ifdef REACT_NATIVE_FORCE_ENABLE_FUSEBOX
42+
true,
43+
#else
44+
ReactNativeFeatureFlags::
45+
inspectorEnableCxxInspectorPackagerConnection(),
46+
#endif
4247
.enableModernCDPRegistry =
48+
#ifdef REACT_NATIVE_FORCE_ENABLE_FUSEBOX
49+
true,
50+
#else
4351
ReactNativeFeatureFlags::inspectorEnableModernCDPRegistry(),
52+
#endif
4453
};
4554

4655
if (cachedValues_.has_value() && !inconsistentFlagsStateLogged_) {

0 commit comments

Comments
 (0)