1{"version":3,"file":"setupHMR.js","sourceRoot":"","sources":["../src/setupHMR.ts"],"names":[],"mappings":";;;;;AAAA,+CAAwC;AAExC,4DAAoC;AAEpC,gDAAgD;AAChD,IAAI,CAAC,uBAAQ,CAAC,SAAS,EAAE;IACvB,6EAA6E;IAC7E,IAAI;IACJ,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,WAAW;IACX,aAAa;IACb,sBAAsB;IACtB,gBAAgB;IAChB,aAAa;IACb,uBAAuB;IACvB,6CAA6C;IAC7C,0DAA0D;IAC1D,qBAAqB;IACrB,4BAA4B;IAC5B,sBAAsB;IACtB,6CAA6C;IAC7C,OAAO;IACP,MAAM;IAEN,mBAAS,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,uBAAQ,CAAC,EAAE,2CAA2C,CAAC,CAAC,CAAC;CACpF;AAED,4CAA4C;AAC5C,mBAAS,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC","sourcesContent":["import { Platform } from 'react-native';\n\nimport HMRClient from './HMRClient';\n\n// Sets up developer tools for React Native web.\nif (!Platform.isTesting) {\n // We assume full control over the console and send JavaScript logs to Metro.\n // [\n // 'trace',\n // 'info',\n // 'warn',\n // 'error',\n // 'log',\n // 'group',\n // 'groupCollapsed',\n // 'groupEnd',\n // 'debug',\n // ].forEach(level => {\n // const originalFunction = console[level];\n // console[level] = function (...args: readonly any[]) {\n // HMRClient.log(\n // // @ts-expect-error\n // level, args);\n // originalFunction.apply(console, args);\n // };\n // });\n\n HMRClient.log('log', [`[${Platform.OS}] Logs will appear in the browser console`]);\n}\n\n// This is called native on native platforms\nHMRClient.setup({ isEnabled: true });\n"]}