Skip to content

Commit 692c79b

Browse files
jackpopeJack Pope
authored andcommitted
Update fork for ReactSharedInternalsClient export (facebook#27717)
## Summary After changes in facebook#27436, UMD builds no longer expose Scheduler from ReactSharedInternals. This module is forked in rollup for UMD builds and the path no longer matches. This PR updates the path name to match the new module: ReactSharedInternalsClient. ## How did you test this change? - `yarn build` - Inspect `react.development.js` UMD build, observe `Scheduler: Scheduler` is set in `ReactSharedInternals`, matching [18.2.0](https://unpkg.com/[email protected]/umd/react.development.js) - ran attribute-behavior fixture app - Observe no more error `Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'unstable_cancelCallback')` Co-authored-by: Jack Pope <[email protected]>
1 parent fdeba78 commit 692c79b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rollup/forks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const forks = Object.freeze({
217217
}
218218
},
219219

220-
'./packages/react/src/ReactSharedInternals.js': (bundleType, entry) => {
220+
'./packages/react/src/ReactSharedInternalsClient.js': (bundleType, entry) => {
221221
switch (bundleType) {
222222
case UMD_DEV:
223223
case UMD_PROD:

0 commit comments

Comments
 (0)