1// This needs to run before the renderer initializes.
2const ReactRefreshRuntime = require('react-refresh/runtime');
3ReactRefreshRuntime.injectIntoGlobalHook(global);
4const Refresh = {
5    performFullRefresh() {
6        location.reload();
7    },
8    createSignatureFunctionForTransform: ReactRefreshRuntime.createSignatureFunctionForTransform,
9    isLikelyComponentType: ReactRefreshRuntime.isLikelyComponentType,
10    getFamilyByType: ReactRefreshRuntime.getFamilyByType,
11    register: ReactRefreshRuntime.register,
12    performReactRefresh() {
13        if (ReactRefreshRuntime.hasUnrecoverableErrors()) {
14            location.reload();
15            return;
16        }
17        ReactRefreshRuntime.performReactRefresh();
18    },
19};
20// The metro require polyfill can not have dependencies (applies for all polyfills).
21// Expose `Refresh` by assigning it to global to make it available in the polyfill.
22global[(global.__METRO_GLOBAL_PREFIX__ || '') + '__ReactRefresh'] = Refresh;
23//# sourceMappingURL=setupFastRefresh.js.map