From 40d33a397306cbfdfb31342d7463b584ad4be406 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 3 Sep 2019 20:17:25 -0400 Subject: [PATCH] wip: remove config.silent --- packages/runtime-core/src/apiApp.ts | 2 -- packages/runtime-core/src/warning.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/runtime-core/src/apiApp.ts b/packages/runtime-core/src/apiApp.ts index 7e0ed972..bb0455ab 100644 --- a/packages/runtime-core/src/apiApp.ts +++ b/packages/runtime-core/src/apiApp.ts @@ -31,7 +31,6 @@ export interface App { } export interface AppConfig { - silent: boolean devtools: boolean performance: boolean errorHandler?: ( @@ -65,7 +64,6 @@ export type Plugin = export function createAppContext(): AppContext { return { config: { - silent: false, devtools: true, performance: false, errorHandler: undefined, diff --git a/packages/runtime-core/src/warning.ts b/packages/runtime-core/src/warning.ts index 138b565b..fc8a27bc 100644 --- a/packages/runtime-core/src/warning.ts +++ b/packages/runtime-core/src/warning.ts @@ -1,6 +1,6 @@ import { VNode } from './vnode' import { Data, ComponentInstance } from './component' -import { isString } from '@vue/shared' +import { isString, EMPTY_OBJ } from '@vue/shared' import { toRaw } from '@vue/reactivity' let stack: VNode[] = []