mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Support preparing debugger shell ahead of "open DevTools" (#53437)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53437 Changelog: [Internal] The React Native DevTools standalone shell is distributed as a DotSlash file that downloads the required binaries lazily. This diff adds support in dev-middleware for a new `BrowserLauncher.unstable_prepareFuseboxShell` method that integrations can use to kick off the download early. Integrations are expected to implement this by calling the `unstable_prepareDebuggerShell` function (added to the `debugger-shell` package in D78413091). If `BrowserLauncher.unstable_prepareFuseboxShell` returns an error, dev-middleware will fall back to the browser-based launch flow, even for users opted into the `enableStandaloneFuseboxShell` experiment. Reviewed By: huntie Differential Revision: D78413092 fbshipit-source-id: 6868bf07e16353fcd83337ae54c87c5a641a0f99
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7046c24702
commit
b5dfb32ed3
@@ -87,6 +87,7 @@ async function unstable_spawnDebuggerShellWithArgs(
|
||||
export type DebuggerShellPreparationResult = $ReadOnly<{
|
||||
code:
|
||||
| 'success'
|
||||
| 'not_implemented'
|
||||
| 'likely_offline'
|
||||
| 'platform_not_supported'
|
||||
| 'possible_corruption'
|
||||
|
||||
Reference in New Issue
Block a user