Просмотр исходного кода

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 6 лет назад
Родитель
Сommit
2103a485d7
1 измененных файлов с 1 добавлено и 1 удалено
  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, {
       Component.render = compile(Component.template, {
         isCustomElement: instance.appContext.config.isCustomElement || NO
         isCustomElement: instance.appContext.config.isCustomElement || NO
       })
       })
-      if (__DEV__ && instance.appContext.config.performance) {
+      if (__DEV__) {
         endMeasure(instance, `compile`)
         endMeasure(instance, `compile`)
       }
       }
       // mark the function as runtime compiled
       // mark the function as runtime compiled