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:
parent
d380ea5cc0
commit
2103a485d7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user