diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index c9ad26a2..39140c31 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -251,7 +251,9 @@ export function createAppAPI( unmount() { if (isMounted) { render(null, app._container) - devtoolsUnmountApp(app) + if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) { + devtoolsUnmountApp(app) + } } else if (__DEV__) { warn(`Cannot unmount an app that is not mounted.`) }