From: Guillaume Chau Date: Sat, 22 Aug 2020 14:34:18 +0000 (+0200) Subject: fix(devtools): unmountApp not behind compile flag X-Git-Tag: v3.0.0-rc.8~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eb7fd83333d97186d570029e4fdca060fdb328d;p=thirdparty%2Fvuejs%2Fcore.git fix(devtools): unmountApp not behind compile flag --- 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.`) }