Skip to content

Commit 4c6470c

Browse files
committed
Point ReactDOMForked to the new implementation
Updates Rollup, Jest, and Flow configuration to point to the new entry points.
1 parent 17f582e commit 4c6470c

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

packages/react-reconciler/src/ReactFiberHotReloading.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
findHostInstancesForRefresh as findHostInstancesForRefresh_old,
3131
} from './ReactFiberHotReloading.old';
3232

33-
// TODO: Update these to point to the fork.
3433
import {
3534
setRefreshHandler as setRefreshHandler_new,
3635
resolveFunctionForHotReloading as resolveFunctionForHotReloading_new,
@@ -41,7 +40,7 @@ import {
4140
scheduleRefresh as scheduleRefresh_new,
4241
scheduleRoot as scheduleRoot_new,
4342
findHostInstancesForRefresh as findHostInstancesForRefresh_new,
44-
} from './ReactFiberHotReloading.old';
43+
} from './ReactFiberHotReloading.new';
4544

4645
export const setRefreshHandler = enableNewReconciler
4746
? setRefreshHandler_new

packages/react-reconciler/src/ReactFiberReconciler.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import {
4242
createPortal as createPortal_old,
4343
} from './ReactFiberReconciler.old';
4444

45-
// TODO: Update these to point to the fork.
4645
import {
4746
createContainer as createContainer_new,
4847
updateContainer as updateContainer_new,
@@ -69,7 +68,7 @@ import {
6968
injectIntoDevTools as injectIntoDevTools_new,
7069
act as act_new,
7170
createPortal as createPortal_new,
72-
} from './ReactFiberReconciler.old';
71+
} from './ReactFiberReconciler.new';
7372

7473
export const createContainer = enableNewReconciler
7574
? createContainer_new

scripts/jest/setupHostConfigs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const inlinedHostConfigs = require('../shared/inlinedHostConfigs');
55
jest.mock('react-reconciler/src/ReactFiberReconciler', () => {
66
return require.requireActual(
77
__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'
109
: 'react-reconciler/src/ReactFiberReconciler.old'
1110
);
1211
});

scripts/rollup/forks.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,7 @@ const forks = Object.freeze({
273273
case FB_WWW_PROD:
274274
case FB_WWW_PROFILING:
275275
// 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';
278277
}
279278
}
280279
// Otherwise, use the non-forked version.
@@ -294,8 +293,7 @@ const forks = Object.freeze({
294293
case FB_WWW_PROD:
295294
case FB_WWW_PROFILING:
296295
// 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';
299297
}
300298
}
301299
// Otherwise, use the non-forked version.

0 commit comments

Comments
 (0)