Skip to content

Commit 7113d9c

Browse files
committed
chore: tweaks
1 parent 3e58744 commit 7113d9c

File tree

1 file changed

+3
-3
lines changed
  • packages/runtime-core/src

1 file changed

+3
-3
lines changed

packages/runtime-core/src/hmr.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export interface HMRRuntime {
3131
// Note: for a component to be eligible for HMR it also needs the __hmrId option
3232
// to be set so that its instances can be registered / removed.
3333
if (__DEV__) {
34-
const globalThis = getGlobalThis()
34+
const g = getGlobalThis()
3535
// vite-plugin-vue/issues/644, #13202
3636
// custom-element libraries bundle Vue to simplify usage outside Vue projects but
3737
// it overwrite __VUE_HMR_RUNTIME__, causing HMR to break.
38-
if (!globalThis.__VUE_HMR_RUNTIME__) {
39-
globalThis.__VUE_HMR_RUNTIME__ = {
38+
if (!g.__VUE_HMR_RUNTIME__) {
39+
g.__VUE_HMR_RUNTIME__ = {
4040
createRecord: tryWrap(createRecord),
4141
rerender: tryWrap(rerender),
4242
reload: tryWrap(reload),

0 commit comments

Comments
 (0)