Skip to content

Commit

Permalink
Add use-subscription to Rollup bundle config
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Aug 8, 2019
1 parent 95767ac commit f34409e
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 @@ -331,7 +331,7 @@ const bundles = [
externals: ['react', 'scheduler'],
},

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

/******* 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 f34409e

Please sign in to comment.