We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64d14ce commit bab8a7bCopy full SHA for bab8a7b
packages/common/refresh-utils.ts
@@ -10,13 +10,9 @@ const refreshContentRE = /\$RefreshReg\$\(/
10
export const preambleCode = `import { injectIntoGlobalHook } from "__BASE__${runtimePublicPath.slice(
11
1,
12
)}";
13
-if (!window.__vite_plugin_react_preamble_installed__) {
14
injectIntoGlobalHook(window);
15
window.$RefreshReg$ = () => {};
16
-window.$RefreshSig$ = () => (type) => type;
17
-}
18
-window.__vite_plugin_react_preamble_installed__ = true;
19
-`
+window.$RefreshSig$ = () => (type) => type;`
20
21
export const getPreambleCode = (base: string): string =>
22
preambleCode.replace('__BASE__', base)
0 commit comments