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.
This commit is contained in:
Cédric Exbrayat 2020-04-03 15:19:53 +02:00 committed by GitHub
parent d380ea5cc0
commit 2103a485d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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