@@ -21,26 +21,18 @@ const ReactSharedInternals = {
2121 ReactCurrentBatchConfig,
2222 // Used by renderers to avoid bundling object-assign twice in UMD bundles:
2323 assign,
24+
25+ // Re-export the schedule API(s) for UMD bundles.
26+ // This avoids introducing a dependency on a new UMD global in a minor update,
27+ // Since that would be a breaking change (e.g. for all existing CodeSandboxes).
28+ // This re-export is only required for UMD bundles;
29+ // CJS bundles use the shared NPM package.
30+ Scheduler,
31+ SchedulerTracing,
2432} ;
2533
2634if ( __DEV__ ) {
27- Object . assign ( ReactSharedInternals , {
28- // These should not be included in production.
29- ReactDebugCurrentFrame,
30- // Shim for React DOM 16.0.0 which still destructured (but not used) this.
31- // TODO: remove in React 17.0.
32- ReactComponentTreeHook : { } ,
33- } ) ;
35+ ReactSharedInternals . ReactDebugCurrentFrame = ReactDebugCurrentFrame ;
3436}
3537
36- // Re-export the schedule API(s) for UMD bundles.
37- // This avoids introducing a dependency on a new UMD global in a minor update,
38- // Since that would be a breaking change (e.g. for all existing CodeSandboxes).
39- // This re-export is only required for UMD bundles;
40- // CJS bundles use the shared NPM package.
41- Object . assign ( ReactSharedInternals , {
42- Scheduler,
43- SchedulerTracing,
44- } ) ;
45-
4638export default ReactSharedInternals ;
0 commit comments