chore: put warning in dev block

This commit is contained in:
Evan You 2019-09-02 16:16:08 -04:00
parent 32713f8fce
commit 67fd5b6091

View 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) {