diff --git a/packages/runtime-core/src/helpers/resolveAssets.ts b/packages/runtime-core/src/helpers/resolveAssets.ts index 268de161..c0e38772 100644 --- a/packages/runtime-core/src/helpers/resolveAssets.ts +++ b/packages/runtime-core/src/helpers/resolveAssets.ts @@ -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' diff --git a/packages/runtime-core/src/profiling.ts b/packages/runtime-core/src/profiling.ts index 6dbc8c29..04954d52 100644 --- a/packages/runtime-core/src/profiling.ts +++ b/packages/runtime-core/src/profiling.ts @@ -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) }