Skip to content

Commit b3851b1

Browse files
fix: hide injected app in Vue devtools (#57)
1 parent e6f32b7 commit b3851b1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/core/src/load.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@ function load() {
2323
const { vue } = inspectorOptions
2424
// vue 2/3 compatibility
2525
vue === 3
26-
? Vue.createApp(App).mount(`#${CONTAINER_ID}`)
26+
? Vue.createApp({
27+
render: () => Vue.h(App),
28+
devtools: {
29+
hide: true,
30+
},
31+
}).mount(`#${CONTAINER_ID}`)
2732
: new Vue.default({
2833
render: h => h(App),
34+
devtools: {
35+
hide: true,
36+
},
2937
}).$mount(`#${CONTAINER_ID}`)
3038
}
3139

0 commit comments

Comments
 (0)