File tree 2 files changed +7
-22
lines changed
packages/runtime-vapor/src
2 files changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -413,9 +413,6 @@ function getAttrsProxy(instance: ComponentInternalInstance): Data {
413
413
) )
414
414
)
415
415
}
416
- const classifyRE = / (?: ^ | [ - _ ] ) ( \w ) / g
417
- const classify = ( str : string ) : string =>
418
- str . replace ( classifyRE , c => c . toUpperCase ( ) ) . replace ( / [ - _ ] / g, '' )
419
416
420
417
export function getComponentName (
421
418
Component : Component ,
@@ -454,16 +451,6 @@ export function formatComponentName(
454
451
return name ? classify ( name ) : isRoot ? `App` : `Anonymous`
455
452
}
456
453
457
- /**
458
- * Dev-only
459
- */
460
- function getSlotsProxy ( instance : ComponentInternalInstance ) : Slots {
461
- return (
462
- instance . slotsProxy ||
463
- ( instance . slotsProxy = new Proxy ( instance . slots , {
464
- get ( target , key : string ) {
465
- return target [ key ]
466
- } ,
467
- } ) )
468
- )
469
- }
454
+ const classifyRE = / (?: ^ | [ - _ ] ) ( \w ) / g
455
+ const classify = ( str : string ) : string =>
456
+ str . replace ( classifyRE , c => c . toUpperCase ( ) ) . replace ( / [ - _ ] / g, '' )
Original file line number Diff line number Diff line change @@ -60,9 +60,10 @@ export function setDevtoolsHook(hook: DevtoolsHook, target: any) {
60
60
// (#4815)
61
61
typeof window !== 'undefined' &&
62
62
// some envs mock window but not fully
63
- window . HTMLElement // &&
63
+ window . HTMLElement &&
64
64
// also exclude jsdom
65
- // !window.navigator?.userAgent?.includes('jsdom')
65
+ // eslint-disable-next-line no-restricted-syntax
66
+ ! window . navigator ?. userAgent ?. includes ( 'jsdom' )
66
67
) {
67
68
const replay = ( target . __VUE_DEVTOOLS_HOOK_REPLAY__ =
68
69
target . __VUE_DEVTOOLS_HOOK_REPLAY__ || [ ] )
@@ -86,10 +87,7 @@ export function setDevtoolsHook(hook: DevtoolsHook, target: any) {
86
87
}
87
88
88
89
export function devtoolsInitApp ( app : App , version : string ) {
89
- emit ( DevtoolsHooks . APP_INIT , app , version , {
90
- Text,
91
- Comment,
92
- } )
90
+ emit ( DevtoolsHooks . APP_INIT , app , version , { } )
93
91
}
94
92
95
93
export function devtoolsUnmountApp ( app : App ) {
You can’t perform that action at this time.
0 commit comments