mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b27607f853
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39161 Changelog: [Internal] Creates a new stub package named `react-native/debugger-frontend`, which will contain a minimal build of the Chrome DevTools frontend adapted for React Native. Initially, the compiled frontend assets will be checked into the React Native repo, but we intend to replace this with a fully automated build in CI at a later date. Reviewed By: huntie Differential Revision: D48680624 fbshipit-source-id: a24c8b019881187963d0be88e773bc0a97a2437d
817 B
817 B
@react-native/debugger-frontend
Debugger frontend for React Native based on Chrome DevTools.
This package is internal to React Native and is intended to be used via @react-native/dev-middleware.
Usage
The package exports the absolute path to the directory containing the frontend assets.
const frontendPath = require('@react-native/debugger-frontend');
// Pass frontendPath to a static server, etc
Updating the frontend assets
The compiled frontend assets are checked into the React Native repo. Run node scripts/debugger-frontend/sync-and-build from the root of your react-native checkout to update them.