From 2103a485d74a4b04074c1f436b1ba430d924c342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Fri, 3 Apr 2020 15:19:53 +0200 Subject: [PATCH] refactor(runtime-core): remove unnecessary tracing check (#912) The check for `config.performance` is already done inside `endMeasure` and is not done anywhere else `endMeasure` is called. --- packages/runtime-core/src/component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 6bed9170..130a7af7 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -452,7 +452,7 @@ function finishComponentSetup( Component.render = compile(Component.template, { isCustomElement: instance.appContext.config.isCustomElement || NO }) - if (__DEV__ && instance.appContext.config.performance) { + if (__DEV__) { endMeasure(instance, `compile`) } // mark the function as runtime compiled