mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
stacked on #27314 Turbopack requires a different module loading strategy than Webpack and as such this PR implements a new package `react-server-dom-turbopack` which largely follows the `react-server-dom-webpack` but is implemented for this new bundler
20 lines
610 B
JavaScript
20 lines
610 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
|
|
*/
|
|
|
|
import {AsyncLocalStorage} from 'async_hooks';
|
|
|
|
import type {Request} from 'react-server/src/ReactFlightServer';
|
|
|
|
export * from 'react-server-dom-turbopack/src/ReactFlightServerConfigTurbopackBundler';
|
|
export * from 'react-dom-bindings/src/server/ReactFlightServerConfigDOM';
|
|
|
|
export const supportsRequestStorage = true;
|
|
export const requestStorage: AsyncLocalStorage<Request> =
|
|
new AsyncLocalStorage();
|