react/scripts/shared
Sebastian Markbåge 60144a04da
Split out Edge and Node implementations of the Flight Client (#26187)
This splits out the Edge and Node implementations of Flight Client into
their own implementations. The Node implementation now takes a Node
Stream as input.

I removed the bundler config from the Browser variant because you're
never supposed to use that in the browser since it's only for SSR.
Similarly, it's required on the server. This also enables generating a
SSR manifest from the Webpack plugin. This is necessary for SSR so that
you can reverse look up what a client module is called on the server.

I also removed the option to pass a callServer from the server. We might
want to add it back in the future but basically, we don't recommend
calling Server Functions from render for initial render because if that
happened client-side it would be a client-side waterfall. If it's never
called in initial render, then it also shouldn't ever happen during SSR.
This might be considered too restrictive.

~This also compiles the unbundled packages as ESM. This isn't strictly
necessary because we only need access to dynamic import to load the
modules but we don't have any other build options that leave
`import(...)` intact, and seems appropriate that this would also be an
ESM module.~ Went with `import(...)` in CJS instead.
2023-02-21 13:18:24 -05:00
..
__tests__ [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
evalToString.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
inlinedHostConfigs.js Split out Edge and Node implementations of the Flight Client (#26187) 2023-02-21 13:18:24 -05:00
listChangedFiles.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
pathsByLanguageVersion.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00