Skip to content

Commit bab8a7b

Browse files
committed
chore: cleanup
1 parent 64d14ce commit bab8a7b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/common/refresh-utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ const refreshContentRE = /\$RefreshReg\$\(/
1010
export const preambleCode = `import { injectIntoGlobalHook } from "__BASE__${runtimePublicPath.slice(
1111
1,
1212
)}";
13-
if (!window.__vite_plugin_react_preamble_installed__) {
1413
injectIntoGlobalHook(window);
1514
window.$RefreshReg$ = () => {};
16-
window.$RefreshSig$ = () => (type) => type;
17-
}
18-
window.__vite_plugin_react_preamble_installed__ = true;
19-
`
15+
window.$RefreshSig$ = () => (type) => type;`
2016

2117
export const getPreambleCode = (base: string): string =>
2218
preambleCode.replace('__BASE__', base)

0 commit comments

Comments
 (0)