]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor(runtime-core): remove unnecessary tracing check (#912)
authorCédric Exbrayat <cexbrayat@users.noreply.github.com>
Fri, 3 Apr 2020 13:19:53 +0000 (15:19 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2020 13:19:53 +0000 (09:19 -0400)
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

index 6bed917082aee3034ad1ef40a19f3c25e8691048..130a7af714d20247b0af618d8b6fd9832c064ed2 100644 (file)
@@ -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