From 173625c8e7b637bb78639678f4d188986c26006e Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Fri, 11 Sep 2026 01:58:31 -0700 Subject: [PATCH] Downgrade HMR client console.warn to console.log Summary: Downgrade a `console.warn` to `console.log` in HMRClient when the bundle is not loaded from Metro. This message is informational rather than a warning condition. Changelog: [Internal] Differential Revision: D119640117 --- packages/react-native/Libraries/Utilities/HMRClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Utilities/HMRClient.js b/packages/react-native/Libraries/Utilities/HMRClient.js index 60f63e542490..c42b3feaca75 100644 --- a/packages/react-native/Libraries/Utilities/HMRClient.js +++ b/packages/react-native/Libraries/Utilities/HMRClient.js @@ -167,7 +167,7 @@ const HMRClient: HMRClientNativeInterface = { // there's nothing to hot-reload — registering with the server would just log // spurious "Unable to resolve module" errors. if (!getDevServer().bundleLoadedFromServer) { - console.warn( + console.log( 'Not enabling Hot Module Reloading: the JS bundle was loaded from a local ' + 'file, not from Metro. To use HMR, load the bundle from the packager.', );