Add use-subscription to Rollup bundle config (#16326)

This commit is contained in:
Brian Vaughn
2019-08-08 18:52:08 -07:00
committed by GitHub
parent b12a982062
commit 8d54038773

View File

@@ -393,7 +393,7 @@ const bundles = [
externals: ['react', 'scheduler'],
},
/******* createComponentWithSubscriptions (experimental) *******/
/******* createComponentWithSubscriptions *******/
{
bundleTypes: [NODE_DEV, NODE_PROD],
moduleType: ISOMORPHIC,
@@ -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],