Skip to content

Commit db45991

Browse files
committed
Implements react-server-dom-turbopack
1 parent c8926bb commit db45991

File tree

64 files changed

+6593
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+6593
-21
lines changed

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ module.exports = {
326326
'packages/react-refresh/**/*.js',
327327
'packages/react-server-dom-esm/**/*.js',
328328
'packages/react-server-dom-webpack/**/*.js',
329+
'packages/react-server-dom-turbopack/**/*.js',
329330
'packages/react-test-renderer/**/*.js',
330331
'packages/react-debug-tools/**/*.js',
331332
'packages/react-devtools-extensions/**/*.js',
@@ -427,6 +428,13 @@ module.exports = {
427428
__webpack_require__: true,
428429
},
429430
},
431+
{
432+
files: ['packages/react-server-dom-turbopack/**/*.js'],
433+
globals: {
434+
__turbopack_load__: 'readonly',
435+
__turbopack_require__: 'readonly',
436+
},
437+
},
430438
{
431439
files: ['packages/scheduler/**/*.js'],
432440
globals: {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from 'react-client/src/ReactFlightClientConfigBrowser';
11+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopack';
12+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopackBrowser';
13+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigTargetTurbopackBrowser';
14+
export * from 'react-dom-bindings/src/shared/ReactFlightClientConfigDOM';
15+
export const usedWithSSR = false;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from 'react-client/src/ReactFlightClientConfigBrowser';
11+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopack';
12+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopackServer';
13+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigTargetTurbopackServer';
14+
export * from 'react-dom-bindings/src/shared/ReactFlightClientConfigDOM';
15+
export const usedWithSSR = true;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from 'react-client/src/ReactFlightClientConfigNode';
11+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopack';
12+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerTurbopackServer';
13+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigTargetTurbopackServer';
14+
export * from 'react-dom-bindings/src/shared/ReactFlightClientConfigDOM';
15+
export const usedWithSSR = true;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from 'react-client/src/ReactFlightClientConfigNode';
11+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigBundlerNode';
12+
export * from 'react-server-dom-turbopack/src/ReactFlightClientConfigTargetTurbopackServer';
13+
export * from 'react-dom-bindings/src/shared/ReactFlightClientConfigDOM';
14+
export const usedWithSSR = true;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# react-server-dom-turbopack
2+
3+
Experimental React Flight bindings for DOM using Turbopack.
4+
5+
**Use it at your own risk.**
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from './src/ReactFlightDOMClientBrowser';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from './src/ReactFlightDOMClientEdge';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from './client.browser';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from './src/ReactFlightDOMClientNode';

0 commit comments

Comments
 (0)