chore(runtime-core): use getGlobalThis when installing HMR API (#3217)

This commit is contained in:
edison 2022-05-10 09:40:19 +08:00 committed by GitHub
parent decad9df57
commit 762a9e99ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ import {
} from './component' } from './component'
import { queueJob, queuePostFlushCb } from './scheduler' import { queueJob, queuePostFlushCb } from './scheduler'
import { extend, getGlobalThis } from '@vue/shared' import { extend, getGlobalThis } from '@vue/shared'
import { warn } from './warning'
type HMRComponent = ComponentOptions | ClassComponent type HMRComponent = ComponentOptions | ClassComponent