mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Support @//xplat/mode/no-react-fusebox (#45216)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45216 Buck modifications supporting the internal React Native DevTools (Fusebox) rollout. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D59154105 fbshipit-source-id: ba22a7f2f64d199b3e4e5a83ffa5036ae36b1a3b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5532e511af
commit
9833338b5d
@@ -25,12 +25,20 @@ void InspectorFlags::dangerouslyResetFlags() {
|
||||
*this = InspectorFlags{};
|
||||
}
|
||||
|
||||
#if defined(REACT_NATIVE_FORCE_ENABLE_FUSEBOX) && \
|
||||
defined(REACT_NATIVE_FORCE_DISABLE_FUSEBOX)
|
||||
#error \
|
||||
"Cannot define both REACT_NATIVE_FORCE_ENABLE_FUSEBOX and REACT_NATIVE_FORCE_DISABLE_FUSEBOX"
|
||||
#endif
|
||||
|
||||
const InspectorFlags::Values& InspectorFlags::loadFlagsAndAssertUnchanged()
|
||||
const {
|
||||
InspectorFlags::Values newValues = {
|
||||
.fuseboxEnabled =
|
||||
#if defined(REACT_NATIVE_FORCE_ENABLE_FUSEBOX)
|
||||
true,
|
||||
#elif defined(REACT_NATIVE_FORCE_DISABLE_FUSEBOX)
|
||||
false,
|
||||
#elif defined(HERMES_ENABLE_DEBUGGER) && \
|
||||
defined(REACT_NATIVE_ENABLE_FUSEBOX_DEBUG)
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user