Update preload links to support nonce and fetchpriority (#26826)

Currently when React generates rel=preload link tags for script/stylesheet resources, it will not carryover nonce and fetchpriority values if specified on the original elements.

This change ensures that the preload links use the nonce and fetchPriority values if they were specified.

DiffTrain build for commit https://github.com/facebook/react/commit/535c038d15d21f33e678187410d658456cc0ce39.
This commit is contained in:
gnoff
2023-05-23 03:01:01 +00:00
parent 1bffb4ba16
commit ff94fad9a1
7 changed files with 9 additions and 9 deletions
@@ -23930,7 +23930,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-7bd330e0b-20230519";
var ReactVersion = "18.3.0-canary-535c038d1-20230522";
// Might add PROFILE later.
@@ -8617,7 +8617,7 @@ var devToolsConfig$jscomp$inline_1036 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-7bd330e0b-20230519",
version: "18.3.0-canary-535c038d1-20230522",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1235 = {
@@ -8648,7 +8648,7 @@ var internals$jscomp$inline_1235 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-7bd330e0b-20230519"
reconcilerVersion: "18.3.0-canary-535c038d1-20230522"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1236 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9043,7 +9043,7 @@ var devToolsConfig$jscomp$inline_1078 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-7bd330e0b-20230519",
version: "18.3.0-canary-535c038d1-20230522",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1276 = {
@@ -9074,7 +9074,7 @@ var internals$jscomp$inline_1276 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-7bd330e0b-20230519"
reconcilerVersion: "18.3.0-canary-535c038d1-20230522"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1277 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-7bd330e0b-20230519";
var ReactVersion = "18.3.0-canary-535c038d1-20230522";
// ATTENTION
// When adding new symbols to this file,
@@ -642,4 +642,4 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-canary-7bd330e0b-20230519";
exports.version = "18.3.0-canary-535c038d1-20230522";
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-canary-7bd330e0b-20230519";
exports.version = "18.3.0-canary-535c038d1-20230522";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
7bd330e0b0d740e4ffda25a179a4d06081f1b8e7
535c038d15d21f33e678187410d658456cc0ce39