Skip to content

Commit 01110ac

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 commit 0a0a3af.
1 parent 5326299 commit 01110ac

File tree

5 files changed

+20
-36
lines changed

5 files changed

+20
-36
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,24 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<ab6461aaac1e5e9824380130b8d84e2c>>
10+
* @generated SignedSource<<5917bdf46559392459c712d28247d2c7>>
1111
*/
1212

1313
'use strict';
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 dynamicFlagsUntyped = require('ReactNativeInternalFeatureFlags');
25+
var dynamicFlagsUntyped = require('ReactNativeInternalFeatureFlags');
2926

30-
var ReactVersion = '19.0.0-beta-b4f8872e';
27+
var ReactVersion = '19.0.0-beta-536f9068';
3128

3229
// Re-export dynamic flags from the internal module.
3330
var dynamicFlags = dynamicFlagsUntyped; // We destructure each value before re-exporting to avoid a dynamic look-up on
@@ -3331,14 +3328,13 @@ exports.useState = useState;
33313328
exports.useSyncExternalStore = useSyncExternalStore;
33323329
exports.useTransition = useTransition;
33333330
exports.version = ReactVersion;
3334-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
33353331
if (
33363332
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
33373333
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
33383334
'function'
33393335
) {
33403336
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
33413337
}
3342-
3338+
33433339
})();
33443340
}

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/scheduler/cjs/Scheduler-dev.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,22 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<f35f511f0b893fdc50a8e31e3f106821>>
10+
* @generated SignedSource<<e367cc047b9d2098d9835d7bb141eaa2>>
1111
*/
1212

1313
'use strict';
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 enableSchedulerDebugging = false;
25+
var enableSchedulerDebugging = false;
2926
var enableProfiling = false;
3027
var frameYieldMs = 5;
3128
var userBlockingPriorityTimeout = 250;
@@ -614,14 +611,13 @@ exports.unstable_runWithPriority = unstable_runWithPriority;
614611
exports.unstable_scheduleCallback = unstable_scheduleCallback;
615612
exports.unstable_shouldYield = shouldYieldToHost;
616613
exports.unstable_wrapCallback = unstable_wrapCallback;
617-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
618614
if (
619615
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
620616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
621617
'function'
622618
) {
623619
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
624620
}
625-
621+
626622
})();
627623
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1d618a9cf36948dbf94aa6a6f2eb9e6a64b52eb0
1+
0a0a3af75a740d0920ebf7f4affaf8d1ce8c107f

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,22 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<aa761accb291cac97fef5f7da27eea9a>>
10+
* @generated SignedSource<<c1c4b5e9c9be53b3abfee5f289a1221a>>
1111
*/
1212

1313
'use strict';
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-
require('react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore');
25+
require('react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore');
2926
var React = require('react');
3027
var ReactNativePrivateInterface = require('react-native/Libraries/ReactPrivate/ReactNativePrivateInterface');
3128
var dynamicFlagsUntyped = require('ReactNativeInternalFeatureFlags');
@@ -26055,7 +26052,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2605526052
return root;
2605626053
}
2605726054

26058-
var ReactVersion = '19.0.0-beta-f64f755b';
26055+
var ReactVersion = '19.0.0-beta-72ec4a89';
2605926056

2606026057
/*
2606126058
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -27106,14 +27103,13 @@ exports.render = render;
2710627103
exports.sendAccessibilityEvent = sendAccessibilityEvent;
2710727104
exports.stopSurface = stopSurface;
2710827105
exports.unmountComponentAtNode = unmountComponentAtNode;
27109-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2711027106
if (
2711127107
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2711227108
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2711327109
'function'
2711427110
) {
2711527111
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2711627112
}
27117-
27113+
2711827114
})();
2711927115
}

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,22 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<af158c6fdf92fc4e43e592ad1c7a98ee>>
10+
* @generated SignedSource<<9675f2f5127aace0edc91083bd5c4242>>
1111
*/
1212

1313
'use strict';
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-
require('react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore');
25+
require('react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore');
2926
var React = require('react');
3027
var ReactNativePrivateInterface = require('react-native/Libraries/ReactPrivate/ReactNativePrivateInterface');
3128
var dynamicFlagsUntyped = require('ReactNativeInternalFeatureFlags');
@@ -26467,7 +26464,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2646726464
return root;
2646826465
}
2646926466

26470-
var ReactVersion = '19.0.0-beta-4aa1a800';
26467+
var ReactVersion = '19.0.0-beta-07071eeb';
2647126468

2647226469
/*
2647326470
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -27526,14 +27523,13 @@ exports.sendAccessibilityEvent = sendAccessibilityEvent;
2752627523
exports.unmountComponentAtNode = unmountComponentAtNode;
2752727524
exports.unmountComponentAtNodeAndRemoveContainer = unmountComponentAtNodeAndRemoveContainer;
2752827525
exports.unstable_batchedUpdates = batchedUpdates$1;
27529-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2753027526
if (
2753127527
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2753227528
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2753327529
'function'
2753427530
) {
2753527531
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2753627532
}
27537-
27533+
2753827534
})();
2753927535
}

0 commit comments

Comments
 (0)