Skip to content

Commit 1428c46

Browse files
author
Brian Vaughn
committed
Add interaction-tracking to bundle externals. Set feature flag to __PROFILE__
1 parent 235642b commit 1428c46

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

packages/shared/ReactFeatureFlags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const warnAboutLegacyContextAPI = false;
4040
export const enableProfilerTimer = __PROFILE__;
4141

4242
// Track which interactions trigger each commit.
43-
export const enableInteractionTracking = false;
43+
export const enableInteractionTracking = __PROFILE__;
4444

4545
// Only used in www builds.
4646
export function addUserTimingListener() {

scripts/rollup/bundles.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const bundles = [
8585
moduleType: RENDERER,
8686
entry: 'react-dom',
8787
global: 'ReactDOM',
88-
externals: ['react'],
88+
externals: ['interaction-tracking', 'react'],
8989
},
9090

9191
//******* Test Utils *******/
@@ -129,15 +129,15 @@ const bundles = [
129129
moduleType: NON_FIBER_RENDERER,
130130
entry: 'react-dom/server.browser',
131131
global: 'ReactDOMServer',
132-
externals: ['react'],
132+
externals: ['interaction-tracking', 'react'],
133133
},
134134

135135
{
136136
label: 'dom-server-node',
137137
bundleTypes: [NODE_DEV, NODE_PROD],
138138
moduleType: NON_FIBER_RENDERER,
139139
entry: 'react-dom/server.node',
140-
externals: ['react', 'stream'],
140+
externals: ['interaction-tracking', 'react', 'stream'],
141141
},
142142

143143
/******* React ART *******/
@@ -179,6 +179,7 @@ const bundles = [
179179
'deepDiffer',
180180
'deepFreezeAndThrowOnMutationInDev',
181181
'flattenStyle',
182+
'interaction-tracking',
182183
'ReactNativeViewConfigRegistry',
183184
],
184185
},
@@ -199,6 +200,7 @@ const bundles = [
199200
'deepDiffer',
200201
'deepFreezeAndThrowOnMutationInDev',
201202
'flattenStyle',
203+
'interaction-tracking',
202204
'ReactNativeViewConfigRegistry',
203205
],
204206
},
@@ -221,6 +223,7 @@ const bundles = [
221223
'deepDiffer',
222224
'deepFreezeAndThrowOnMutationInDev',
223225
'flattenStyle',
226+
'interaction-tracking',
224227
'ReactNativeViewConfigRegistry',
225228
],
226229
},
@@ -242,6 +245,7 @@ const bundles = [
242245
'deepDiffer',
243246
'deepFreezeAndThrowOnMutationInDev',
244247
'flattenStyle',
248+
'interaction-tracking',
245249
'ReactNativeViewConfigRegistry',
246250
],
247251
},
@@ -253,7 +257,7 @@ const bundles = [
253257
moduleType: RENDERER,
254258
entry: 'react-test-renderer',
255259
global: 'ReactTestRenderer',
256-
externals: ['react'],
260+
externals: ['interaction-tracking', 'react'],
257261
},
258262

259263
{
@@ -318,7 +322,7 @@ const bundles = [
318322
moduleType: RECONCILER,
319323
entry: 'react-reconciler',
320324
global: 'ReactReconciler',
321-
externals: ['react'],
325+
externals: ['interaction-tracking', 'react'],
322326
},
323327

324328
/******* React Persistent Reconciler *******/
@@ -328,7 +332,7 @@ const bundles = [
328332
moduleType: RECONCILER,
329333
entry: 'react-reconciler/persistent',
330334
global: 'ReactPersistentReconciler',
331-
externals: ['react'],
335+
externals: ['interaction-tracking', 'react'],
332336
},
333337

334338
/******* Reflection *******/

0 commit comments

Comments
 (0)