From 67fd5b6091cbaf4f1262970b7ba6e4c838a2b3aa Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 2 Sep 2019 16:16:08 -0400 Subject: [PATCH] chore: put warning in dev block --- packages/runtime-core/src/apiCreateApp.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 7d6a7d4744..14cd6b13b2 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -98,9 +98,11 @@ export function createAppAPI(render: RootRenderFunction): () => App { }, set config(v) { - warn( - `app.config cannot be replaced. Modify individual options instead.` - ) + if (__DEV__) { + warn( + `app.config cannot be replaced. Modify individual options instead.` + ) + } }, use(plugin: Plugin) { -- 2.47.3