Drop cxxreact:bridge dep from runtimescheduler (#57240)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57240

Narrow the runtimescheduler's cxxreact dep. Previously runtimescheduler depended on the full `cxxreact:bridge` target; it only needs `cxxreact:tracesection` (for `TraceSection.h`) plus `jserrorhandler:jserrorhandler` (for `handleJSError`, since Phase 1 moved `ErrorUtils` there) plus `jsi` directly. Also adds `jsi` to the explicit dep list — `runtimescheduler` was previously pulling it in transitively through `cxxreact:bridge`.

Verified with `buck2 uquery 'somepath(...:runtimeschedulerAndroid, ...:bridgeAndroid)'` — no path; the edge is gone.

Changelog:
[Internal]

Reviewed By: christophpurrer

Differential Revision: D108786501

fbshipit-source-id: 4102a8af9b9637b29f5898fc1b9d097c28e44965
This commit is contained in:
Pieter De Baets authored and meta-codesync[bot] committed 2026-07-06 07:43:37 -07:00
1 parent 07816cba56
commit 624f7439a8
2 files changed
+1 -1

No files matched your search

@@ -47,6 +47,7 @@ Pod::Spec.new do |s|
s.dependency "React-utils"
s.dependency "React-featureflags"
s.dependency "React-timing"
s.dependency "React-jserrorhandler"
s.dependency "React-jsi"
s.dependency "React-jserrorhandler"
s.dependency "React-performancetimeline"
@@ -9,7 +9,6 @@
#include <ReactCommon/RuntimeExecutor.h>
#include <cxxreact/JSBigString.h>
#include <cxxreact/JSExecutor.h>
#include <cxxreact/ReactMarker.h>
#include <cxxreact/TraceSection.h>
#include <glog/logging.h>