1import { Platform } from 'react-native';
2import HMRClient from './HMRClient';
3// Sets up developer tools for React Native web.
4if (!Platform.isTesting) {
5    // We assume full control over the console and send JavaScript logs to Metro.
6    // [
7    //   'trace',
8    //   'info',
9    //   'warn',
10    //   'error',
11    //   'log',
12    //   'group',
13    //   'groupCollapsed',
14    //   'groupEnd',
15    //   'debug',
16    // ].forEach(level => {
17    //   const originalFunction = console[level];
18    //   console[level] = function (...args: readonly any[]) {
19    //     HMRClient.log(
20    //       // @ts-expect-error
21    //       level, args);
22    //     originalFunction.apply(console, args);
23    //   };
24    // });
25    HMRClient.log('log', [`[${Platform.OS}] Logs will appear in the browser console`]);
26}
27// This is called native on native platforms
28HMRClient.setup({ isEnabled: true });
29//# sourceMappingURL=setupHMR.js.map