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:
Brian Vaughn
2018-08-17 14:45:18 -06:00
committed by GitHub
parent 4b32f525e1
commit 0da5102cf0
17 changed files with 857 additions and 654 deletions

View File

@@ -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)

View File

@@ -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' }.