-
Notifications
You must be signed in to change notification settings - Fork 47.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flight] reorganize code for forked entrypoints
This commit updates the file locations and bulid configurations for flight in preparation for new static entrypoints. This follows a structure similar to Fizz which has a unified build but exports methods from different top level entrypoints. This PR doesn't actually add the new top level entrypoints however, that will arrive in a later update.
- Loading branch information
Showing
90 changed files
with
526 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
* @flow | ||
*/ | ||
|
||
export * from './src/ReactFlightDOMClientNode'; | ||
export * from './src/client/ReactFlightDOMClientNode'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
'use strict'; | ||
|
||
var s; | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./cjs/react-server-dom-esm-server.node.production.js'); | ||
s = require('./cjs/react-server-dom-esm-server.node.production.js'); | ||
} else { | ||
module.exports = require('./cjs/react-server-dom-esm-server.node.development.js'); | ||
s = require('./cjs/react-server-dom-esm-server.node.development.js'); | ||
} | ||
|
||
exports.renderToPipeableStream = s.renderToPipeableStream; | ||
exports.decodeReplyFromBusboy = s.decodeReplyFromBusboy; | ||
exports.decodeReply = s.decodeReply; | ||
exports.decodeAction = s.decodeAction; | ||
exports.decodeFormState = s.decodeFormState; | ||
exports.registerServerReference = s.registerServerReference; | ||
exports.registerClientReference = s.registerClientReference; | ||
exports.createTemporaryReferenceSet = s.createTemporaryReferenceSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/react-server-dom-esm/src/server/react-flight-dom-server.node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* 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 { | ||
renderToPipeableStream, | ||
decodeReplyFromBusboy, | ||
decodeReply, | ||
decodeAction, | ||
decodeFormState, | ||
registerServerReference, | ||
registerClientReference, | ||
createTemporaryReferenceSet, | ||
} from './ReactFlightDOMServerNode'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
* @flow | ||
*/ | ||
|
||
export * from './src/ReactFlightDOMClientEdge'; | ||
export * from './src/client/ReactFlightDOMClientEdge'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
* @flow | ||
*/ | ||
|
||
export * from './src/ReactFlightDOMClientNode'; | ||
export * from './src/client/ReactFlightDOMClientNode'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
* @flow | ||
*/ | ||
|
||
export * from './src/ReactFlightDOMClientNode'; | ||
export * from './src/client/ReactFlightDOMClientNode'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
'use strict'; | ||
|
||
var s; | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./cjs/react-server-dom-turbopack-server.browser.production.js'); | ||
s = require('./cjs/react-server-dom-turbopack-server.browser.production.js'); | ||
} else { | ||
module.exports = require('./cjs/react-server-dom-turbopack-server.browser.development.js'); | ||
s = require('./cjs/react-server-dom-turbopack-server.browser.development.js'); | ||
} | ||
|
||
exports.renderToReadableStream = s.renderToReadableStream; | ||
exports.decodeReply = s.decodeReply; | ||
exports.decodeAction = s.decodeAction; | ||
exports.decodeFormState = s.decodeFormState; | ||
exports.registerServerReference = s.registerServerReference; | ||
exports.registerClientReference = s.registerClientReference; | ||
exports.createClientModuleProxy = s.createClientModuleProxy; | ||
exports.createTemporaryReferenceSet = s.createTemporaryReferenceSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
'use strict'; | ||
|
||
var s; | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./cjs/react-server-dom-turbopack-server.edge.production.js'); | ||
s = require('./cjs/react-server-dom-turbopack-server.edge.production.js'); | ||
} else { | ||
module.exports = require('./cjs/react-server-dom-turbopack-server.edge.development.js'); | ||
s = require('./cjs/react-server-dom-turbopack-server.edge.development.js'); | ||
} | ||
|
||
exports.renderToReadableStream = s.renderToReadableStream; | ||
exports.decodeReply = s.decodeReply; | ||
exports.decodeAction = s.decodeAction; | ||
exports.decodeFormState = s.decodeFormState; | ||
exports.registerServerReference = s.registerServerReference; | ||
exports.registerClientReference = s.registerClientReference; | ||
exports.createClientModuleProxy = s.createClientModuleProxy; | ||
exports.createTemporaryReferenceSet = s.createTemporaryReferenceSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
'use strict'; | ||
|
||
var s; | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./cjs/react-server-dom-turbopack-server.node.production.js'); | ||
s = require('./cjs/react-server-dom-turbopack-server.node.production.js'); | ||
} else { | ||
module.exports = require('./cjs/react-server-dom-turbopack-server.node.development.js'); | ||
s = require('./cjs/react-server-dom-turbopack-server.node.development.js'); | ||
} | ||
|
||
exports.renderToPipeableStream = s.renderToPipeableStream; | ||
exports.decodeReplyFromBusboy = s.decodeReplyFromBusboy; | ||
exports.decodeReply = s.decodeReply; | ||
exports.decodeAction = s.decodeAction; | ||
exports.decodeFormState = s.decodeFormState; | ||
exports.registerServerReference = s.registerServerReference; | ||
exports.registerClientReference = s.registerClientReference; | ||
exports.createClientModuleProxy = s.createClientModuleProxy; | ||
exports.createTemporaryReferenceSet = s.createTemporaryReferenceSet; |
15 changes: 13 additions & 2 deletions
15
packages/react-server-dom-turbopack/npm/server.node.unbundled.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
'use strict'; | ||
|
||
var s; | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./cjs/react-server-dom-turbopack-server.node.unbundled.production.js'); | ||
s = require('./cjs/react-server-dom-turbopack-server.node.unbundled.production.js'); | ||
} else { | ||
module.exports = require('./cjs/react-server-dom-turbopack-server.node.unbundled.development.js'); | ||
s = require('./cjs/react-server-dom-turbopack-server.node.unbundled.development.js'); | ||
} | ||
|
||
exports.renderToPipeableStream = s.renderToPipeableStream; | ||
exports.decodeReplyFromBusboy = s.decodeReplyFromBusboy; | ||
exports.decodeReply = s.decodeReply; | ||
exports.decodeAction = s.decodeAction; | ||
exports.decodeFormState = s.decodeFormState; | ||
exports.registerServerReference = s.registerServerReference; | ||
exports.registerClientReference = s.registerClientReference; | ||
exports.createClientModuleProxy = s.createClientModuleProxy; | ||
exports.createTemporaryReferenceSet = s.createTemporaryReferenceSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.