wip: Vue.util compat

This commit is contained in:
Evan You
2021-04-11 16:53:43 -04:00
parent c55f3ed0e8
commit 62bfdae043
6 changed files with 160 additions and 32 deletions

View File

@@ -16,7 +16,7 @@ import { devtoolsInitApp, devtoolsUnmountApp } from './devtools'
import { isFunction, NO, isObject } from '@vue/shared'
import { version } from '.'
import { installCompatMount } from './compat/global'
import { installLegacyConfigTraps } from './compat/globalConfig'
import { installLegacyConfigProperties } from './compat/globalConfig'
export interface App<HostElement = any> {
version: string
@@ -307,7 +307,7 @@ export function createAppAPI<HostElement>(
if (__COMPAT__) {
installCompatMount(app, context, render, hydrate)
if (__DEV__) installLegacyConfigTraps(app.config)
if (__DEV__) installLegacyConfigProperties(app.config)
}
return app