From: edison Date: Tue, 10 May 2022 01:40:19 +0000 (+0800) Subject: chore(runtime-core): use `getGlobalThis` when installing HMR API (#3217) X-Git-Tag: v3.2.34-beta.1~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=762a9e99ce43831c7b9da027de271aaa39f3924b;p=thirdparty%2Fvuejs%2Fcore.git chore(runtime-core): use `getGlobalThis` when installing HMR API (#3217) --- diff --git a/packages/runtime-core/src/hmr.ts b/packages/runtime-core/src/hmr.ts index 3c3f5208bc..1ea1dd01bc 100644 --- a/packages/runtime-core/src/hmr.ts +++ b/packages/runtime-core/src/hmr.ts @@ -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