]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(devtools): unmountApp not behind compile flag
authorGuillaume Chau <guillaume.b.chau@gmail.com>
Sat, 22 Aug 2020 14:34:18 +0000 (16:34 +0200)
committerGuillaume Chau <guillaume.b.chau@gmail.com>
Sat, 22 Aug 2020 14:34:18 +0000 (16:34 +0200)
packages/runtime-core/src/apiCreateApp.ts

index c9ad26a2b731b70fadab048ed4b9a920079b6282..39140c31571c0843742a48bab9debe02c8605210 100644 (file)
@@ -251,7 +251,9 @@ export function createAppAPI<HostElement>(
       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.`)
         }