@@ -21,26 +21,18 @@ const ReactSharedInternals = {
21
21
ReactCurrentBatchConfig,
22
22
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
23
23
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,
24
32
} ;
25
33
26
34
if ( __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 ;
34
36
}
35
37
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
-
46
38
export default ReactSharedInternals ;
0 commit comments