- const safeThis = require('./utils/safeThis');
- if (process.env.NODE_ENV !== 'production' && typeof safeThis !== 'undefined') {
-
- if (!safeThis.__reactRefreshInjected) {
- const RefreshRuntime = require('react-refresh/runtime');
-
- RefreshRuntime.injectIntoGlobalHook(safeThis);
-
- safeThis.__reactRefreshInjected = true;
- }
- }
|