Skip to content

Commit 8d54038

Browse files
author
Brian Vaughn
authored
Add use-subscription to Rollup bundle config (#16326)
1 parent b12a982 commit 8d54038

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/rollup/bundles.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ const bundles = [
393393
externals: ['react', 'scheduler'],
394394
},
395395

396-
/******* createComponentWithSubscriptions (experimental) *******/
396+
/******* createComponentWithSubscriptions *******/
397397
{
398398
bundleTypes: [NODE_DEV, NODE_PROD],
399399
moduleType: ISOMORPHIC,
@@ -409,6 +409,15 @@ const bundles = [
409409
}),
410410
},
411411

412+
/******* Hook for managing subscriptions safely *******/
413+
{
414+
bundleTypes: [NODE_DEV, NODE_PROD],
415+
moduleType: ISOMORPHIC,
416+
entry: 'use-subscription',
417+
global: 'useSubscription',
418+
externals: ['react'],
419+
},
420+
412421
/******* React Scheduler (experimental) *******/
413422
{
414423
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],

0 commit comments

Comments
 (0)