diff --git a/scripts/rollup/bundles.js b/scripts/rollup/bundles.js index fc06b507c7c3d..d1e60de6507c5 100644 --- a/scripts/rollup/bundles.js +++ b/scripts/rollup/bundles.js @@ -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],