From 6eb7fd83333d97186d570029e4fdca060fdb328d Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Sat, 22 Aug 2020 16:34:18 +0200 Subject: [PATCH] fix(devtools): unmountApp not behind compile flag --- packages/runtime-core/src/apiCreateApp.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index c9ad26a2b7..39140c3157 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.`) } -- 2.47.2