mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Add interaction-tracking/subscriptions (#13426)
* Removed enableInteractionTrackingObserver as a separate flag; only enableInteractionTracking is used now * Added interaction-tracking/subscriptions bundle and split tests * Added multi-subscriber support * Moved subscriptions behind feature flag * Fixed bug with wrap() parameters and added test * Replaced wrap arrow function
This commit is contained in:
@@ -404,6 +404,15 @@ const bundles = [
|
||||
global: 'InteractionTracking',
|
||||
externals: [],
|
||||
},
|
||||
|
||||
{
|
||||
label: 'interaction-tracking-subscriptions',
|
||||
bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
|
||||
moduleType: ISOMORPHIC,
|
||||
entry: 'interaction-tracking/subscriptions',
|
||||
global: 'InteractionTrackingSubscriptions',
|
||||
externals: ['interaction-tracking'],
|
||||
},
|
||||
];
|
||||
|
||||
// Based on deep-freeze by substack (public domain)
|
||||
|
||||
@@ -21,6 +21,7 @@ const knownGlobals = Object.freeze({
|
||||
react: 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
'interaction-tracking': 'InteractionTracking',
|
||||
'interaction-tracking/subscriptions': 'InteractionTrackingSubscriptions',
|
||||
});
|
||||
|
||||
// Given ['react'] in bundle externals, returns { 'react': 'React' }.
|
||||
|
||||
Reference in New Issue
Block a user