File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/devtools-kit/src/core/component/state Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- export const vueBuiltins = [
1
+ export const vueBuiltins = new Set ( [
2
2
'nextTick' ,
3
3
'defineComponent' ,
4
4
'defineAsyncComponent' ,
@@ -50,7 +50,7 @@ export const vueBuiltins = [
50
50
'resolveDirective' ,
51
51
'withDirectives' ,
52
52
'withModifiers' ,
53
- ]
53
+ ] )
54
54
55
55
export const symbolRE = / ^ \[ n a t i v e S y m b o l S y m b o l \( ( .* ) \) \] $ /
56
56
export const rawTypeRE = / ^ \[ o b j e c t ( \w + ) ] $ /
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ function getStateTypeAndName(info: ReturnType<typeof getSetupStateType>) {
131
131
function processSetupState ( instance : VueAppInstance ) {
132
132
const raw = instance . devtoolsRawSetupState || { }
133
133
return Object . keys ( instance . setupState )
134
- . filter ( key => ! vueBuiltins . includes ( key ) && key . split ( / (? = [ A - Z ] ) / ) [ 0 ] !== 'use' )
134
+ . filter ( key => ! vueBuiltins . has ( key ) && key . split ( / (? = [ A - Z ] ) / ) [ 0 ] !== 'use' )
135
135
. map ( ( key ) => {
136
136
const value = returnError ( ( ) => toRaw ( instance . setupState [ key ] ) ) as unknown as {
137
137
render : Function
You can’t perform that action at this time.
0 commit comments