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 ( [
22 'nextTick' ,
33 'defineComponent' ,
44 'defineAsyncComponent' ,
@@ -50,7 +50,7 @@ export const vueBuiltins = [
5050 'resolveDirective' ,
5151 'withDirectives' ,
5252 'withModifiers' ,
53- ]
53+ ] )
5454
5555export const symbolRE = / ^ \[ n a t i v e S y m b o l S y m b o l \( ( .* ) \) \] $ /
5656export 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>) {
131131function processSetupState ( instance : VueAppInstance ) {
132132 const raw = instance . devtoolsRawSetupState || { }
133133 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' )
135135 . map ( ( key ) => {
136136 const value = returnError ( ( ) => toRaw ( instance . setupState [ key ] ) ) as unknown as {
137137 render : Function
You can’t perform that action at this time.
0 commit comments