Parcourir la source

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.
Cédric Exbrayat il y a 6 ans
Parent
commit
2103a485d7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/runtime-core/src/component.ts

+ 1 - 1
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