react/packages/react-server-dom-webpack
Sebastian Markbåge 67a61d5bd7
[Flight Fixture] Show SSR Support with CSS (#26263)
Builds on #26257.

To do this we need access to a manifest for which scripts and CSS are
used for each "page" (entrypoint).

The initial script to bootstrap the app is inserted with
`bootstrapScripts`. Subsequent content are loaded using the chunks
mechanism built-in.

The stylesheets for each pages are prepended to each RSC payload and
rendered using Float. This doesn't yet support styles imported in
components that are also SSR:ed nor imported through Server Components.
That's more complex and not implemented in the node loader.

HMR doesn't work after reloads right now because the SSR renderer isn't
hot reloaded because there's no idiomatic way to hot reload ESM modules
in Node.js yet. Without killing the HMR server. This leads to hydration
mismatches when reloading the page after a hot reload.

Notably this doesn't show serializing the stream through the HTML like
real implementations do. This will lead to possible hydration mismatches
based on the data. However, manually serializing the stream as a string
isn't exactly correct due to binary data. It's not the idiomatic way
this is supposed to work. This will all be built-in which will make this
automatic in the future.
2023-02-28 19:44:37 -05:00
..
esm Split out Edge and Node implementations of the Flight Client (#26187) 2023-02-21 13:18:24 -05:00
npm Create a bunch of custom webpack vs unbundled node bundles (#26172) 2023-02-16 11:01:52 -05:00
src [Flight Fixture] Show SSR Support with CSS (#26263) 2023-02-28 19:44:37 -05:00
README.md [Flight] Rename react-transport-... packages to react-server-... (#20403) 2020-12-08 08:08:57 -05:00
client.browser.js Split out Edge and Node implementations of the Flight Client (#26187) 2023-02-21 13:18:24 -05:00
client.edge.js Split out Edge and Node implementations of the Flight Client (#26187) 2023-02-21 13:18:24 -05:00
client.js Create a bunch of custom webpack vs unbundled node bundles (#26172) 2023-02-16 11:01:52 -05:00
client.node.js Split out Edge and Node implementations of the Flight Client (#26187) 2023-02-21 13:18:24 -05:00
client.node.unbundled.js Split out Edge and Node implementations of the Flight Client (#26187) 2023-02-21 13:18:24 -05:00
index.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
node-register.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
package.json Split out Edge and Node implementations of the Flight Client (#26187) 2023-02-21 13:18:24 -05:00
plugin.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
server.browser.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
server.edge.js Add Edge Server Builds for workerd / edge-light (#26116) 2023-02-07 15:10:01 -05:00
server.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
server.node.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
server.node.unbundled.js Create a bunch of custom webpack vs unbundled node bundles (#26172) 2023-02-16 11:01:52 -05:00

README.md

react-server-dom-webpack

Experimental React Flight bindings for DOM using Webpack.

Use it at your own risk.