wip: make singleton mutations affect all app instances

This commit is contained in:
Evan You
2021-05-05 17:56:09 -04:00
parent 61edb700d7
commit f2a5a3ee55
5 changed files with 107 additions and 56 deletions

View File

@@ -38,9 +38,7 @@ function wrappedCreateApp(...args: any[]) {
}
export function createCompatVue() {
const Vue = compatUtils.createCompatVue(wrappedCreateApp)
const Vue = compatUtils.createCompatVue(createApp, wrappedCreateApp)
extend(Vue, runtimeDom)
// @ts-ignore
Vue.createApp = wrappedCreateApp
return Vue
}