File size: 703 Bytes
b91e262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import RefreshRuntime from 'react-refresh/runtime'
import type { RefreshRuntimeGlobals } from './runtime'
declare const self: Window & RefreshRuntimeGlobals
if (typeof self !== 'undefined') {
var $RefreshInjected$ = '__reactRefreshInjected'
// Only inject the runtime if it hasn't been injected
if (!self[$RefreshInjected$]) {
RefreshRuntime.injectIntoGlobalHook(self)
// Empty implementation to avoid "ReferenceError: variable is not defined" in module which didn't pass builtin:react-refresh-loader
self.$RefreshSig$ = () => (type) => type
self.$RefreshReg$ = () => {}
// Mark the runtime as injected to prevent double-injection
self[$RefreshInjected$] = true
}
}
|