File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ export interface HMRRuntime {
31
31
// Note: for a component to be eligible for HMR it also needs the __hmrId option
32
32
// to be set so that its instances can be registered / removed.
33
33
if ( __DEV__ ) {
34
- const globalThis = getGlobalThis ( )
34
+ const g = getGlobalThis ( )
35
35
// vite-plugin-vue/issues/644, #13202
36
36
// custom-element libraries bundle Vue to simplify usage outside Vue projects but
37
37
// 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__ = {
40
40
createRecord : tryWrap ( createRecord ) ,
41
41
rerender : tryWrap ( rerender ) ,
42
42
reload : tryWrap ( reload ) ,
You can’t perform that action at this time.
0 commit comments