File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ const bundles = [
118
118
FB_WWW_PROFILING ,
119
119
NODE_DEV ,
120
120
NODE_PROD ,
121
+ NODE_PROFILING ,
121
122
] ,
122
123
moduleType : RENDERER ,
123
124
entry : 'react-dom/unstable-new-scheduler' ,
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ const inlinedHostConfigs = require('../shared/inlinedHostConfigs');
7
7
const UMD_DEV = bundleTypes . UMD_DEV ;
8
8
const UMD_PROD = bundleTypes . UMD_PROD ;
9
9
const UMD_PROFILING = bundleTypes . UMD_PROFILING ;
10
+ const NODE_DEV = bundleTypes . NODE_DEV ;
11
+ const NODE_PROD = bundleTypes . NODE_PROD ;
12
+ const NODE_PROFILING = bundleTypes . NODE_PROFILING ;
10
13
const FB_WWW_DEV = bundleTypes . FB_WWW_DEV ;
11
14
const FB_WWW_PROD = bundleTypes . FB_WWW_PROD ;
12
15
const FB_WWW_PROFILING = bundleTypes . FB_WWW_PROFILING ;
@@ -69,10 +72,20 @@ const forks = Object.freeze({
69
72
'shared/ReactFeatureFlags' : ( bundleType , entry ) => {
70
73
switch ( entry ) {
71
74
case 'react-dom/unstable-new-scheduler' : {
72
- if ( entry === 'react-dom/unstable-new-scheduler' ) {
73
- return 'shared/forks/ReactFeatureFlags.www-new-scheduler.js' ;
75
+ switch ( bundleType ) {
76
+ case FB_WWW_DEV :
77
+ case FB_WWW_PROD :
78
+ case FB_WWW_PROFILING :
79
+ return 'shared/forks/ReactFeatureFlags.www-new-scheduler.js' ;
80
+ case NODE_DEV :
81
+ case NODE_PROD :
82
+ case NODE_PROFILING :
83
+ return 'shared/forks/ReactFeatureFlags.new-scheduler.js' ;
84
+ default :
85
+ throw Error (
86
+ `Unexpected entry (${ entry } ) and bundleType (${ bundleType } )`
87
+ ) ;
74
88
}
75
- return null ;
76
89
}
77
90
case 'react-native-renderer' :
78
91
switch ( bundleType ) {
You can’t perform that action at this time.
0 commit comments