Should not export functions that are not imported (#27222)
These functions are not imported anywhere and should have not been exported to begin with
Josh Story committed
Aug 14, 2023 at 10:06 UTC
5ad8ef57729fa4a57aeec3f9b0516325248dba85
1 file changed
+3
-3
packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js
+3
-3
@@ -5014,7 +5014,7 @@ function getResourceKey(as: string, href: string): string {
5014
return `[${as}]${href}`;
5015
}
5016
5017
-export function prefetchDNS(href: string, options?: ?PrefetchDNSOptions) {
5017
+function prefetchDNS(href: string, options?: ?PrefetchDNSOptions) {
5018
if (!enableFloat) {
5019
return;
5020
}
@@ -5073,7 +5073,7 @@ export function prefetchDNS(href: string, options?: ?PrefetchDNSOptions) {
5073
}
5074
}
5075
5076
-export function preconnect(href: string, options?: ?PreconnectOptions) {
5076
+function preconnect(href: string, options?: ?PreconnectOptions) {
5077
if (!enableFloat) {
5078
return;
5079
}
@@ -5136,7 +5136,7 @@ export function preconnect(href: string, options?: ?PreconnectOptions) {
5136
}
5137
}
5138
5139
-export function preload(href: string, options: PreloadOptions) {
5139
+function preload(href: string, options: PreloadOptions) {
5140
if (!enableFloat) {
5141
return;
5142
}