]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix types
authorEvan You <yyx990803@gmail.com>
Fri, 26 Jun 2020 14:07:07 +0000 (10:07 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 26 Jun 2020 14:07:07 +0000 (10:07 -0400)
packages/runtime-core/src/helpers/resolveAssets.ts
packages/runtime-core/src/profiling.ts

index 268de161c36c63d4c6a2114c69fdc9e1dc774c34..c0e38772f709ee23e78b1f6f3bb0539c09351e3c 100644 (file)
@@ -1,12 +1,7 @@
 import { currentRenderingInstance } from '../componentRenderUtils'
-import {
-  currentInstance,
-  Component,
-  FunctionalComponent,
-  ComponentOptions
-} from '../component'
+import { currentInstance, Component, FunctionalComponent } from '../component'
 import { Directive } from '../directives'
-import { camelize, capitalize, isString, isObject } from '@vue/shared'
+import { camelize, capitalize, isString } from '@vue/shared'
 import { warn } from '../warning'
 
 const COMPONENTS = 'components'
index 6dbc8c29627259bed0c578c230411e6b92749bb8..04954d5286632e2f28839070072519aec7665437 100644 (file)
@@ -17,7 +17,11 @@ export function endMeasure(instance: ComponentInternalInstance, type: string) {
     const startTag = `vue-${type}-${instance.uid}`
     const endTag = startTag + `:end`
     perf.mark(endTag)
-    perf.measure(`<${formatComponentName(instance)}> ${type}`, startTag, endTag)
+    perf.measure(
+      `<${formatComponentName(instance, instance.type)}> ${type}`,
+      startTag,
+      endTag
+    )
     perf.clearMarks(startTag)
     perf.clearMarks(endTag)
   }