]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(runtime-core): use `getGlobalThis` when installing HMR API (#3217)
authoredison <daiwei521@126.com>
Tue, 10 May 2022 01:40:19 +0000 (09:40 +0800)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 01:40:19 +0000 (21:40 -0400)
packages/runtime-core/src/hmr.ts

index 3c3f5208bcc617ebbf24e19ae1e5f08416d140a9..1ea1dd01bcc42cf9a3381adbf9522957725267d4 100644 (file)
@@ -9,6 +9,7 @@ import {
 } from './component'
 import { queueJob, queuePostFlushCb } from './scheduler'
 import { extend, getGlobalThis } from '@vue/shared'
+import { warn } from './warning'
 
 type HMRComponent = ComponentOptions | ClassComponent