react/scripts/rollup
Andrew Clark 1314299c7f
Initial shim of useSyncExternalStore (#22211)
This sets up an initial shim implementation of useSyncExternalStore,
via the use-sync-external-store package. It's designed to mimic the
behavior of the built-in API, but is backwards compatible to any version
of React that supports hooks.

I have not yet implemented the built-in API, but once it exists, the
use-sync-external-store package will always prefer that one. Library
authors can depend on the shim and trust that their users get the
correct implementation.

See https://github.com/reactwg/react-18/discussions/86 for background
on the API.

The tests I've added here are designed to run against both the shim and
built-in implementation, using our variant test flag feature. Tests that
only apply to concurrent roots will live in a separate suite.
2021-09-01 17:52:38 -07:00
..
plugins Upgrade Closure Compiler (#19041) 2020-05-29 09:17:14 -07:00
shims Add concurrentRoot property to ReactNativeTypes (#21648) 2021-06-10 08:59:22 -04:00
validate Clean up Scheduler forks (#20915) 2021-05-17 16:53:58 -04:00
build-all-release-channels.js Next/experimental release versions include commit date (#21700) 2021-06-23 13:50:09 -04:00
build.js Fail build on deep requires in npm packages (#21063) 2021-03-24 02:43:55 +00:00
bundles.js Initial shim of useSyncExternalStore (#22211) 2021-09-01 17:52:38 -07:00
forks.js Remove unstable scheduler/tracing API (#20037) 2021-04-26 19:16:18 -04:00
modules.js Re-add old Fabric Offscreen impl behind flag (#22018) 2021-08-03 19:30:20 -07:00
packaging.js [Flight] Rename react-transport-... packages to react-server-... (#20403) 2020-12-08 08:08:57 -05:00
stats.js Fix sizebot (#15771) 2019-05-29 21:30:16 -07:00
sync.js Fork React Native renderer into FB and OSS bundles (#12625) 2018-04-18 13:16:50 -07:00
utils.js Refactor the build scripts (#11787) 2017-12-06 20:11:32 +00:00
wrappers.js Add Node ESM build option (#20243) 2020-11-13 05:57:45 -08:00