Skip to content

Commit 3f41a2a

Browse files
committed
chore: cleanup
1 parent 64d14ce commit 3f41a2a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/common/refresh-utils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +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$ = () => {};
1615
window.$RefreshSig$ = () => (type) => type;
17-
}
18-
window.__vite_plugin_react_preamble_installed__ = true;
1916
`
2017

2118
export const getPreambleCode = (base: string): string =>

0 commit comments

Comments
 (0)