Files
react/scripts
Sebastian Markbåge d93b58a5e3 Add flight specific entry point for react package (#20304)
This configures the Flight fixture to use the "react-server" environment.

This allows the package.json exports field to specify a different resolution
in this environment.

I use this in the "react" package to resolve to a new bundle that excludes
the Hooks that aren't relevant in this environment like useState and useEffect.

This allows us to error early if these names are imported. If we actually
published ESM, it would we a static error. Now it's a runtime error.

You can test this by importing useState in Container.js which is used
by the client and server.
2020-11-20 08:47:13 -08:00
..
2020-06-30 12:43:52 +01:00
2020-11-13 11:54:33 -08:00
2019-10-03 22:44:18 +05:30
2013-09-09 23:42:54 -07:00