Skip to content

Commit

Permalink
fix: vuejs#876
Browse files Browse the repository at this point in the history
  • Loading branch information
liyongning committed Dec 24, 2021
1 parent 5f8d385 commit f47a874
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtimeContext.ts
Expand Up @@ -43,7 +43,8 @@ export function isPluginInstalled() {
}

export function isVueRegistered(Vue: VueConstructor) {
return hasOwn(Vue, PluginInstalledFlag)
// resolve issue: https://github.com/vuejs/composition-api/issues/876#issue-1087619365
return vueConstructor && hasOwn(Vue, PluginInstalledFlag)
}

export function getVueConstructor(): VueConstructor {
Expand Down

0 comments on commit f47a874

Please sign in to comment.