Skip to content

Commit

Permalink
Add use-subscription to Rollup bundle config (#16326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn authored Aug 9, 2019
1 parent b12a982 commit 8d54038
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const bundles = [
externals: ['react', 'scheduler'],
},

/******* createComponentWithSubscriptions (experimental) *******/
/******* createComponentWithSubscriptions *******/
{
bundleTypes: [NODE_DEV, NODE_PROD],
moduleType: ISOMORPHIC,
Expand All @@ -409,6 +409,15 @@ const bundles = [
}),
},

/******* Hook for managing subscriptions safely *******/
{
bundleTypes: [NODE_DEV, NODE_PROD],
moduleType: ISOMORPHIC,
entry: 'use-subscription',
global: 'useSubscription',
externals: ['react'],
},

/******* React Scheduler (experimental) *******/
{
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
Expand Down

0 comments on commit 8d54038

Please sign in to comment.