mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Downgrade HMR client console.warn to console.log (#58478)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58478 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 fbshipit-source-id: 4af3765af7601929faf37c7f9b8a323b79903610
This commit is contained in:
1 parent
25f48bd72f
commit
cf976568b2
1 file changed
+1
-1
+1
-1
@@ -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.',
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user