diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 7d6a7d47..14cd6b13 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) {