@samitouri / QOS-React-2 / commits / 4c6470cb3b

Point ReactDOMForked to the new implementation

Updates Rollup, Jest, and Flow configuration to point to the new entry points.

Andrew Clark committed Apr 8, 2020 at 23:13 UTC 4c6470cb3b821f3664955290cd4c4c7ac0de733a
4 files changed +5 -10
packages/react-reconciler/src/ReactFiberHotReloading.js
+1 -2
@@ -30,7 +30,6 @@ import {
30 findHostInstancesForRefresh as findHostInstancesForRefresh_old,
31 } from './ReactFiberHotReloading.old';
32
33 -// TODO: Update these to point to the fork.
33 import {
34 setRefreshHandler as setRefreshHandler_new,
35 resolveFunctionForHotReloading as resolveFunctionForHotReloading_new,
@@ -41,7 +40,7 @@ import {
40 scheduleRefresh as scheduleRefresh_new,
41 scheduleRoot as scheduleRoot_new,
42 findHostInstancesForRefresh as findHostInstancesForRefresh_new,
44 -} from './ReactFiberHotReloading.old';
43 +} from './ReactFiberHotReloading.new';
44
45 export const setRefreshHandler = enableNewReconciler
46 ? setRefreshHandler_new
packages/react-reconciler/src/ReactFiberReconciler.js
+1 -2
@@ -42,7 +42,6 @@ import {
42 createPortal as createPortal_old,
43 } from './ReactFiberReconciler.old';
44
45 -// TODO: Update these to point to the fork.
45 import {
46 createContainer as createContainer_new,
47 updateContainer as updateContainer_new,
@@ -69,7 +68,7 @@ import {
68 injectIntoDevTools as injectIntoDevTools_new,
69 act as act_new,
70 createPortal as createPortal_new,
72 -} from './ReactFiberReconciler.old';
71 +} from './ReactFiberReconciler.new';
72
73 export const createContainer = enableNewReconciler
74 ? createContainer_new
scripts/jest/setupHostConfigs.js
+1 -2
@@ -5,8 +5,7 @@ const inlinedHostConfigs = require('../shared/inlinedHostConfigs');
5 jest.mock('react-reconciler/src/ReactFiberReconciler', () => {
6 return require.requireActual(
7 __VARIANT__
8 - ? // TODO: Update this to point to the new module, once it exists
9 - 'react-reconciler/src/ReactFiberReconciler.old'
8 + ? 'react-reconciler/src/ReactFiberReconciler.new'
9 : 'react-reconciler/src/ReactFiberReconciler.old'
10 );
11 });
scripts/rollup/forks.js
+2 -4
@@ -273,8 +273,7 @@ const forks = Object.freeze({
273 case FB_WWW_PROD:
274 case FB_WWW_PROFILING:
275 // Use the forked version of the reconciler
276 - // TODO: Update this to point to the new module, once it exists
277 - return 'react-reconciler/src/ReactFiberReconciler.old.js';
276 + return 'react-reconciler/src/ReactFiberReconciler.new.js';
277 }
278 }
279 // Otherwise, use the non-forked version.
@@ -294,8 +293,7 @@ const forks = Object.freeze({
293 case FB_WWW_PROD:
294 case FB_WWW_PROFILING:
295 // Use the forked version of the reconciler
297 - // TODO: Update this to point to the new module, once it exists
298 - return 'react-reconciler/src/ReactFiberHotReloading.old.js';
296 + return 'react-reconciler/src/ReactFiberHotReloading.new.js';
297 }
298 }
299 // Otherwise, use the non-forked version.