]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: put warning in dev block
authorEvan You <yyx990803@gmail.com>
Mon, 2 Sep 2019 20:16:08 +0000 (16:16 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 2 Sep 2019 20:16:08 +0000 (16:16 -0400)
packages/runtime-core/src/apiCreateApp.ts

index 7d6a7d474455a984f06f4cf493271adabc000ecf..14cd6b13b28a1c90fff6dd6c32b35e052ab45f12 100644 (file)
@@ -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) {