Skip to content

Commit 6eb7fd8

Browse files
committed
fix(devtools): unmountApp not behind compile flag
1 parent 3138f4b commit 6eb7fd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/runtime-core/src/apiCreateApp.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ export function createAppAPI<HostElement>(
251251
unmount() {
252252
if (isMounted) {
253253
render(null, app._container)
254-
devtoolsUnmountApp(app)
254+
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
255+
devtoolsUnmountApp(app)
256+
}
255257
} else if (__DEV__) {
256258
warn(`Cannot unmount an app that is not mounted.`)
257259
}

0 commit comments

Comments
 (0)