mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
Stacked on #30906. Injects the Flight Client into the DevTools hook if it `supportsFlight`. This only injects in DEV. We could inject it in prod too but so far the only feature this exposes is only available in DEV anyway. I also only call `injectIntoDevTools` in the browser builds since we don't really support DevTools on the server anyway. The main purpose of this for now is so that DevTools can track the Server Component owner of replayed logs. This lets us add owner stacks where `console.createTask` is not natively supported (like Firefox). It also lets us associate the log with the Server Component in the Component tree #30905.
20 lines
855 B
JavaScript
20 lines
855 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
export {default as rendererVersion} from 'shared/ReactVersion';
|
|
export const rendererPackageName = 'react-server-dom-webpack';
|
|
|
|
export * from 'react-client/src/ReactFlightClientStreamConfigWeb';
|
|
export * from 'react-client/src/ReactClientConsoleConfigServer';
|
|
export * from 'react-server-dom-webpack/src/client/ReactFlightClientConfigBundlerWebpack';
|
|
export * from 'react-server-dom-webpack/src/client/ReactFlightClientConfigBundlerWebpackServer';
|
|
export * from 'react-server-dom-webpack/src/client/ReactFlightClientConfigTargetWebpackServer';
|
|
export * from 'react-dom-bindings/src/shared/ReactFlightClientConfigDOM';
|
|
export const usedWithSSR = true;
|