mirror of
https://github.com/facebook/react.git
synced 2026-02-24 04:33:04 +00:00
* Wire up DOM legacy build * Hack to filter extra comments for testing purposes * Use string concat in renderToString I think this might be faster. We could probably use a combination of this technique in the stream too to lower the overhead. * Error if we can't complete the root synchronously Maybe this should always error but in the async forms we can just delay the stream until it resolves so it does have some useful semantics. In the synchronous form it's never useful though. I'm mostly adding the error because we're testing this behavior for renderToString specifically. * Gate memory leak tests of internals These tests don't translate as is to the new implementation and have been ported to the Fizz tests separately. * Enable Fizz legacy mode in stable * Add wrapper around the ServerFormatConfig for legacy mode This ensures that we can inject custom overrides without negatively affecting the new implementation. This adds another field for static mark up for example. * Wrap pushTextInstance to avoid emitting comments for text in static markup * Don't emit static mark up for completed suspense boundaries Completed and client rendered boundaries are only marked for the client to take over. Pending boundaries are still supported in case you stream non-hydratable mark up. * Wire up generateStaticMarkup to static API entry points * Mark as renderer for stable This shouldn't affect the FB one ideally but it's done with the same build so let's hope this works.
146 lines
4.3 KiB
JavaScript
146 lines
4.3 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
'use strict';
|
|
|
|
module.exports = [
|
|
{
|
|
shortName: 'dom',
|
|
entryPoints: [
|
|
'react-dom',
|
|
'react-dom/testing',
|
|
'react-dom/unstable-fizz.node',
|
|
'react-server-dom-webpack/writer.node.server',
|
|
'react-server-dom-webpack',
|
|
],
|
|
paths: [
|
|
'react-dom',
|
|
'react-dom/unstable-fizz',
|
|
'react-dom/unstable-fizz.node',
|
|
'react-dom/server.node.stable',
|
|
'react-dom/src/server/ReactDOMFizzServerNode.js', // react-dom/unstable-fizz.node
|
|
'react-server-dom-webpack',
|
|
'react-server-dom-webpack/writer',
|
|
'react-server-dom-webpack/writer.node.server',
|
|
'react-server-dom-webpack/src/ReactFlightDOMServerNode.js', // react-server-dom-webpack/writer.node.server
|
|
'react-client/src/ReactFlightClientStream.js', // We can only type check this in streaming configurations.
|
|
'react-interactions',
|
|
],
|
|
isFlowTyped: true,
|
|
isServerSupported: true,
|
|
},
|
|
{
|
|
shortName: 'dom-browser',
|
|
entryPoints: [
|
|
'react-dom',
|
|
'react-dom/testing',
|
|
'react-dom/unstable-fizz.browser',
|
|
'react-server-dom-webpack/writer.browser.server',
|
|
'react-server-dom-webpack',
|
|
],
|
|
paths: [
|
|
'react-dom',
|
|
'react-dom/testing',
|
|
'react-dom/unstable-fizz.browser',
|
|
'react-dom/server.browser.stable',
|
|
'react-dom/src/server/ReactDOMFizzServerBrowser.js', // react-dom/unstable-fizz.browser
|
|
'react-server-dom-webpack',
|
|
'react-server-dom-webpack/writer.browser.server',
|
|
'react-server-dom-webpack/src/ReactFlightDOMServerBrowser.js', // react-server-dom-webpack/writer.browser.server
|
|
'react-client/src/ReactFlightClientStream.js', // We can only type check this in streaming configurations.
|
|
],
|
|
isFlowTyped: true,
|
|
isServerSupported: true,
|
|
},
|
|
{
|
|
shortName: 'dom-legacy',
|
|
entryPoints: ['react-dom/server.browser', 'react-dom/server.node'],
|
|
paths: [
|
|
'react-dom',
|
|
'react-dom/server',
|
|
'react-dom/server.browser',
|
|
'react-dom/server.node',
|
|
'react-server-dom-webpack',
|
|
'react-dom/src/server/ReactDOMLegacyServerBrowser.js', // react-dom/server.browser
|
|
'react-dom/src/server/ReactDOMLegacyServerNode.js', // react-dom/server.node
|
|
'react-client/src/ReactFlightClientStream.js', // We can only type check this in streaming configurations.
|
|
],
|
|
isFlowTyped: true,
|
|
isServerSupported: true,
|
|
},
|
|
{
|
|
shortName: 'art',
|
|
entryPoints: ['react-art'],
|
|
paths: ['react-art'],
|
|
isFlowTyped: false, // TODO: type it.
|
|
isServerSupported: false,
|
|
},
|
|
{
|
|
shortName: 'native',
|
|
entryPoints: ['react-native-renderer'],
|
|
paths: ['react-native-renderer'],
|
|
isFlowTyped: true,
|
|
isServerSupported: false,
|
|
},
|
|
{
|
|
shortName: 'fabric',
|
|
entryPoints: ['react-native-renderer/fabric'],
|
|
paths: ['react-native-renderer'],
|
|
isFlowTyped: true,
|
|
isServerSupported: false,
|
|
},
|
|
{
|
|
shortName: 'test',
|
|
entryPoints: ['react-test-renderer'],
|
|
paths: ['react-test-renderer'],
|
|
isFlowTyped: true,
|
|
isServerSupported: false,
|
|
},
|
|
{
|
|
shortName: 'dom-relay',
|
|
entryPoints: [
|
|
'react-server-dom-relay',
|
|
'react-server-dom-relay/server',
|
|
'react-server-dom-relay/src/ReactDOMServerFB',
|
|
],
|
|
paths: ['react-dom', 'react-server-dom-relay'],
|
|
isFlowTyped: true,
|
|
isServerSupported: true,
|
|
},
|
|
{
|
|
shortName: 'native-relay',
|
|
entryPoints: [
|
|
'react-server-native-relay',
|
|
'react-server-native-relay/server',
|
|
],
|
|
paths: [
|
|
'react-native-renderer',
|
|
'react-server-native-relay',
|
|
// this is included here so that it's not included in the main native check
|
|
// remove this when it's added to the main native renderer.
|
|
'react-native-renderer/src/server',
|
|
],
|
|
isFlowTyped: true,
|
|
isServerSupported: true,
|
|
},
|
|
{
|
|
shortName: 'custom',
|
|
entryPoints: [
|
|
'react-reconciler',
|
|
'react-client/flight',
|
|
'react-server',
|
|
'react-server/flight',
|
|
],
|
|
paths: [
|
|
'react-client/flight',
|
|
'react-server/flight',
|
|
'react-client/src/ReactFlightClientStream.js', // We can only type check this in streaming configurations.
|
|
],
|
|
isFlowTyped: true,
|
|
isServerSupported: true,
|
|
},
|
|
];
|