Skip to content

Commit b76cf7b

Browse files
committed
Bundle config: inline internal hook wrapper (#28978)
Bundle config: inline internal hook wrapper Instead of reading this wrapper from 2 files for "start" and "end" and then string modifying the templates, just inline them like the other wrappers in this file. DiffTrain build for [0a0a3af](0a0a3af)
1 parent bc32eda commit b76cf7b

File tree

9 files changed

+29
-61
lines changed

9 files changed

+29
-61
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1beb73de0f7c3261a0de37620453b102caaa6236
1+
0a0a3af75a740d0920ebf7f4affaf8d1ce8c107f

compiled/facebook-www/React-dev.classic.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414

1515
if (__DEV__) {
1616
(function() {
17-
18-
'use strict';
19-
20-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17+
'use strict';
2118
if (
2219
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2320
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2421
'function'
2522
) {
2623
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2724
}
28-
var ReactVersion = '19.0.0-www-classic-f1929680';
25+
var ReactVersion = '19.0.0-www-classic-efefdbe4';
2926

3027
// Re-export dynamic flags from the www version.
3128
var dynamicFeatureFlags = require('ReactFeatureFlags');
@@ -3504,14 +3501,13 @@ exports.useState = useState;
35043501
exports.useSyncExternalStore = useSyncExternalStore;
35053502
exports.useTransition = useTransition;
35063503
exports.version = ReactVersion;
3507-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
35083504
if (
35093505
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
35103506
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
35113507
'function'
35123508
) {
35133509
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
35143510
}
3515-
3511+
35163512
})();
35173513
}

compiled/facebook-www/React-dev.modern.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414

1515
if (__DEV__) {
1616
(function() {
17-
18-
'use strict';
19-
20-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17+
'use strict';
2118
if (
2219
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2320
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2421
'function'
2522
) {
2623
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2724
}
28-
var ReactVersion = '19.0.0-www-modern-1ac5c7b0';
25+
var ReactVersion = '19.0.0-www-modern-a366d2dc';
2926

3027
// Re-export dynamic flags from the www version.
3128
var dynamicFeatureFlags = require('ReactFeatureFlags');
@@ -3493,14 +3490,13 @@ exports.useState = useState;
34933490
exports.useSyncExternalStore = useSyncExternalStore;
34943491
exports.useTransition = useTransition;
34953492
exports.version = ReactVersion;
3496-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
34973493
if (
34983494
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
34993495
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
35003496
'function'
35013497
) {
35023498
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
35033499
}
3504-
3500+
35053501
})();
35063502
}

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414

1515
if (__DEV__) {
1616
(function() {
17-
18-
'use strict';
19-
20-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17+
'use strict';
2118
if (
2219
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2320
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2421
'function'
2522
) {
2623
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2724
}
28-
var React = require('react');
25+
var React = require('react');
2926
var Transform = require('art/core/transform');
3027
var Mode$1 = require('art/modes/current');
3128
var Scheduler = require('scheduler');
@@ -63,7 +60,7 @@ function _assertThisInitialized(self) {
6360
return self;
6461
}
6562

66-
var ReactVersion = '19.0.0-www-classic-0ce7839f';
63+
var ReactVersion = '19.0.0-www-classic-bcc8c760';
6764

6865
var LegacyRoot = 0;
6966
var ConcurrentRoot = 1;
@@ -26679,14 +26676,13 @@ exports.RadialGradient = RadialGradient;
2667926676
exports.Shape = Shape;
2668026677
exports.Surface = Surface;
2668126678
exports.Text = Text;
26682-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2668326679
if (
2668426680
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2668526681
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2668626682
'function'
2668726683
) {
2668826684
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2668926685
}
26690-
26686+
2669126687
})();
2669226688
}

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414

1515
if (__DEV__) {
1616
(function() {
17-
18-
'use strict';
19-
20-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17+
'use strict';
2118
if (
2219
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2320
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2421
'function'
2522
) {
2623
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2724
}
28-
var React = require('react');
25+
var React = require('react');
2926
var Transform = require('art/core/transform');
3027
var Mode$1 = require('art/modes/current');
3128
var Scheduler = require('scheduler');
@@ -63,7 +60,7 @@ function _assertThisInitialized(self) {
6360
return self;
6461
}
6562

66-
var ReactVersion = '19.0.0-www-modern-3acd2c75';
63+
var ReactVersion = '19.0.0-www-modern-23dbd06a';
6764

6865
var LegacyRoot = 0;
6966
var ConcurrentRoot = 1;
@@ -25957,14 +25954,13 @@ exports.RadialGradient = RadialGradient;
2595725954
exports.Shape = Shape;
2595825955
exports.Surface = Surface;
2595925956
exports.Text = Text;
25960-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2596125957
if (
2596225958
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2596325959
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2596425960
'function'
2596525961
) {
2596625962
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2596725963
}
25968-
25964+
2596925965
})();
2597025966
}

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414

1515
if (__DEV__) {
1616
(function() {
17-
18-
'use strict';
19-
20-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17+
'use strict';
2118
if (
2219
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2320
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2421
'function'
2522
) {
2623
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2724
}
28-
var Scheduler = require('scheduler');
25+
var Scheduler = require('scheduler');
2926
var React = require('react');
3027

3128
var assign = Object.assign;
@@ -30841,7 +30838,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
3084130838
return root;
3084230839
}
3084330840

30844-
var ReactVersion = '19.0.0-www-classic-c1bcb6b8';
30841+
var ReactVersion = '19.0.0-www-classic-f43a9c2f';
3084530842

3084630843
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
3084730844
implementation) {
@@ -41891,14 +41888,13 @@ exports.unstable_runWithPriority = runWithPriority;
4189141888
exports.useFormState = useFormState;
4189241889
exports.useFormStatus = useFormStatus;
4189341890
exports.version = ReactVersion;
41894-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
4189541891
if (
4189641892
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
4189741893
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
4189841894
'function'
4189941895
) {
4190041896
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
4190141897
}
41902-
41898+
4190341899
})();
4190441900
}

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414

1515
if (__DEV__) {
1616
(function() {
17-
18-
'use strict';
19-
20-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17+
'use strict';
2118
if (
2219
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2320
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2421
'function'
2522
) {
2623
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2724
}
28-
var Scheduler = require('scheduler');
25+
var Scheduler = require('scheduler');
2926
var React = require('react');
3027

3128
var assign = Object.assign;
@@ -30016,7 +30013,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
3001630013
return root;
3001730014
}
3001830015

30019-
var ReactVersion = '19.0.0-www-modern-2f73daed';
30016+
var ReactVersion = '19.0.0-www-modern-c9b0d0d3';
3002030017

3002130018
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
3002230019
implementation) {
@@ -40879,14 +40876,13 @@ exports.unstable_runWithPriority = runWithPriority;
4087940876
exports.useFormState = useFormState;
4088040877
exports.useFormStatus = useFormStatus;
4088140878
exports.version = ReactVersion;
40882-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
4088340879
if (
4088440880
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
4088540881
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
4088640882
'function'
4088740883
) {
4088840884
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
4088940885
}
40890-
40886+
4089140887
})();
4089240888
}

compiled/facebook-www/Scheduler-dev.classic.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414

1515
if (__DEV__) {
1616
(function() {
17-
18-
'use strict';
19-
20-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17+
'use strict';
2118
if (
2219
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2320
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2421
'function'
2522
) {
2623
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2724
}
28-
// $FlowFixMe[cannot-resolve-module]
25+
// $FlowFixMe[cannot-resolve-module]
2926
var dynamicFeatureFlags = require('SchedulerFeatureFlags');
3027

3128
var enableProfilingFeatureFlag = dynamicFeatureFlags.enableProfiling;
@@ -804,14 +801,13 @@ exports.unstable_runWithPriority = unstable_runWithPriority;
804801
exports.unstable_scheduleCallback = unstable_scheduleCallback;
805802
exports.unstable_shouldYield = shouldYieldToHost;
806803
exports.unstable_wrapCallback = unstable_wrapCallback;
807-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
808804
if (
809805
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
810806
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
811807
'function'
812808
) {
813809
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
814810
}
815-
811+
816812
})();
817813
}

compiled/facebook-www/Scheduler-dev.modern.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414

1515
if (__DEV__) {
1616
(function() {
17-
18-
'use strict';
19-
20-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17+
'use strict';
2118
if (
2219
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2320
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2421
'function'
2522
) {
2623
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2724
}
28-
// $FlowFixMe[cannot-resolve-module]
25+
// $FlowFixMe[cannot-resolve-module]
2926
var dynamicFeatureFlags = require('SchedulerFeatureFlags');
3027

3128
var enableProfilingFeatureFlag = dynamicFeatureFlags.enableProfiling;
@@ -804,14 +801,13 @@ exports.unstable_runWithPriority = unstable_runWithPriority;
804801
exports.unstable_scheduleCallback = unstable_scheduleCallback;
805802
exports.unstable_shouldYield = shouldYieldToHost;
806803
exports.unstable_wrapCallback = unstable_wrapCallback;
807-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
808804
if (
809805
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
810806
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
811807
'function'
812808
) {
813809
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
814810
}
815-
811+
816812
})();
817813
}

0 commit comments

Comments
 (0)