Skip to content

Commit 032f57f

Browse files
andreiglingeanuyyx990803
authored andcommitted
respect Vue.config.devtools (#260)
1 parent 537c524 commit 032f57f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/backend/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ function scan () {
109109
inFragment = true
110110
currentFragment = instance
111111
}
112-
rootInstances.push(instance)
112+
113+
// respect Vue.config.devtools option
114+
if (instance.$options._base.config.devtools) {
115+
rootInstances.push(instance)
116+
}
117+
113118
return true
114119
}
115120
})

0 commit comments

Comments
 (0)