File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ const bundles = [
118118 FB_WWW_PROFILING ,
119119 NODE_DEV ,
120120 NODE_PROD ,
121+ NODE_PROFILING ,
121122 ] ,
122123 moduleType : RENDERER ,
123124 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');
77const UMD_DEV = bundleTypes . UMD_DEV ;
88const UMD_PROD = bundleTypes . UMD_PROD ;
99const 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 ;
1013const FB_WWW_DEV = bundleTypes . FB_WWW_DEV ;
1114const FB_WWW_PROD = bundleTypes . FB_WWW_PROD ;
1215const FB_WWW_PROFILING = bundleTypes . FB_WWW_PROFILING ;
@@ -69,10 +72,20 @@ const forks = Object.freeze({
6972 'shared/ReactFeatureFlags' : ( bundleType , entry ) => {
7073 switch ( entry ) {
7174 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+ ) ;
7488 }
75- return null ;
7689 }
7790 case 'react-native-renderer' :
7891 switch ( bundleType ) {
You can’t perform that action at this time.
0 commit comments