Jelajahi Sumber

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 tahun lalu
induk
melakukan
2103a485d7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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