From: Evan You Date: Mon, 2 Sep 2019 20:16:08 +0000 (-0400) Subject: chore: put warning in dev block X-Git-Tag: v3.0.0-alpha.0~850 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67fd5b6091cbaf4f1262970b7ba6e4c838a2b3aa;p=thirdparty%2Fvuejs%2Fcore.git chore: put warning in dev block --- 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) {