mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Add use-subscription to Rollup bundle config (#16326)
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user