wip: progress

This commit is contained in:
Evan You
2021-04-05 18:13:29 -04:00
parent 40e3dd28e1
commit 53b8127a9c
10 changed files with 341 additions and 256 deletions

View File

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