1import { Platform } from 'expo-modules-core';
2
3declare let global: {
4  __DEV__?: boolean;
5  RN$Bridgeless?: boolean;
6  __METRO_GLOBAL_PREFIX__?: string;
7  __RCTProfileIsProfiling?: boolean;
8  WebSocket: any;
9};
10
11if (
12  // Only during development.
13  global.__DEV__ &&
14  // Disable for SSR
15  Platform.isDOMAvailable &&
16  // Disable for non-metro runtimes
17  // NOTE(EvanBacon): This can probably be removed in favor of `expo/metro-config` injecting this file.
18  global.__METRO_GLOBAL_PREFIX__ != null
19) {
20  require('./setupFastRefresh');
21  require('./setupHMR');
22  require('./messageSocket');
23}
24