Skip to content

Commit 6148593

Browse files
committed
Shared
1 parent 0a1431d commit 6148593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/rollup/forks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const forks = Object.freeze({
4343
// happens. Other bundles just require('object-assign') anyway.
4444
return null;
4545
}
46-
if (entry === 'react' || entry === 'react/unstable-common-subset') {
46+
if (entry === 'react' || entry === 'react/unstable-shared-subset') {
4747
// Use the forked version that uses ES modules instead of CommonJS.
4848
return 'shared/forks/object-assign.inline-umd.js';
4949
}
@@ -64,7 +64,7 @@ const forks = Object.freeze({
6464
// Without this fork, importing `shared/ReactSharedInternals` inside
6565
// the `react` package itself would not work due to a cyclical dependency.
6666
'shared/ReactSharedInternals': (bundleType, entry, dependencies) => {
67-
if (entry === 'react' || entry === 'react/unstable-common-subset') {
67+
if (entry === 'react' || entry === 'react/unstable-shared-subset') {
6868
return 'react/src/ReactSharedInternals.js';
6969
}
7070
if (!entry.startsWith('react/') && dependencies.indexOf('react') === -1) {

0 commit comments

Comments
 (0)