@samitouri / QOS-React-2 / commits / 8d54038773

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

Brian Vaughn committed Aug 8, 2019 at 18:52 UTC 8d540387736ac8a3d2d1e932b187cf7fe2c9607e
1 file changed +10 -1
scripts/rollup/bundles.js
+10 -1
@@ -393,7 +393,7 @@ const bundles = [
393 externals: ['react', 'scheduler'],
394 },
395
396 - /******* createComponentWithSubscriptions (experimental) *******/
396 + /******* createComponentWithSubscriptions *******/
397 {
398 bundleTypes: [NODE_DEV, NODE_PROD],
399 moduleType: ISOMORPHIC,
@@ -409,6 +409,15 @@ const bundles = [
409 }),
410 },
411
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 +
421 /******* React Scheduler (experimental) *******/
422 {
423 bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],