fix(compat): fix globalProperties pollution in v3 mode

fix #5699
This commit is contained in:
Evan You
2022-05-23 09:46:00 +08:00
parent 108474e2bb
commit 2f07e3460b
2 changed files with 40 additions and 8 deletions

View File

@@ -399,7 +399,7 @@ function applySingletonAppMutations(app: App) {
}
const val = singletonApp.config[key as keyof AppConfig]
// @ts-ignore
app.config[key] = val
app.config[key] = isObject(val) ? Object.create(val) : val
// compat for runtime ignoredElements -> isCustomElement
if (