Skip to content

Commit 41c3664

Browse files
committed
Ad hoc case
1 parent 164c0ae commit 41c3664

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/rollup/build-all-release-channels.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,11 @@ function updatePackageVersions(
251251
}
252252
}
253253
if (packageInfo.peerDependencies) {
254-
if (!pinToExactVersion && moduleName === 'use-sync-external-store') {
254+
if (
255+
!pinToExactVersion &&
256+
(moduleName === 'use-sync-external-store' ||
257+
moduleName === 'use-subscription')
258+
) {
255259
// use-sync-external-store supports older versions of React, too, so
256260
// we don't override to the latest version. We should figure out some
257261
// better way to handle this.

0 commit comments

Comments
 (0)