File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,17 @@ var React = require('React');
1717var ReactUMDEntry = Object . assign ( {
1818 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED : {
1919 ReactCurrentOwner : require ( 'ReactCurrentOwner' ) ,
20- ReactComponentTreeHook : require ( 'ReactComponentTreeHook' ) ,
2120 } ,
2221} , React ) ;
2322
23+ if ( __DEV__ ) {
24+ Object . assign (
25+ ReactUMDEntry . __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ,
26+ {
27+ // ReactComponentTreeHook should not be included in production.
28+ ReactComponentTreeHook : require ( 'ReactComponentTreeHook' ) ,
29+ }
30+ ) ;
31+ }
32+
2433module . exports = ReactUMDEntry ;
Original file line number Diff line number Diff line change @@ -17,8 +17,17 @@ var ReactWithAddons = require('ReactWithAddons');
1717var ReactWithAddonsUMDEntry = Object . assign ( {
1818 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED : {
1919 ReactCurrentOwner : require ( 'ReactCurrentOwner' ) ,
20- ReactComponentTreeHook : require ( 'ReactComponentTreeHook' ) ,
2120 } ,
2221} , ReactWithAddons ) ;
2322
23+ if ( __DEV__ ) {
24+ Object . assign (
25+ ReactWithAddonsUMDEntry . __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ,
26+ {
27+ // ReactComponentTreeHook should not be included in production.
28+ ReactComponentTreeHook : require ( 'ReactComponentTreeHook' ) ,
29+ }
30+ ) ;
31+ }
32+
2433module . exports = ReactWithAddonsUMDEntry ;
You can’t perform that action at this time.
0 commit comments