From: Cédric Exbrayat Date: Fri, 3 Apr 2020 13:19:53 +0000 (+0200) Subject: refactor(runtime-core): remove unnecessary tracing check (#912) X-Git-Tag: v3.0.0-alpha.11~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2103a485d74a4b04074c1f436b1ba430d924c342;p=thirdparty%2Fvuejs%2Fcore.git 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. --- diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 6bed917082..130a7af714 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