Enable performance measuring in production, at the user's request #11775
Labels
Comments
13 tasks
vegerot
added a commit
to vegerot/vue
that referenced
this issue
Nov 17, 2020
close vuejs#11775 Similar to devtools, `Vue.config.devtools` is enabled by default for development and disabled by default for production. However, the developer can choose to override that behavior (for example, for debugging) by manually setting `Vue.config.devtools = true`. However, this same lenience is not afforded to `Vue.config.performance`. Even if explicitly enabling it, the developer's setting will be overridden by Vue in production. This commit brings `Vue.config.performance` in line with `Vue.config.devtools`, by disabling it by default in production, but gives the developer the ability to explicitly enable it; for example, for debugging performance issues.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
Similar to devtools,
Vue.config.devtools
is enabled by default for development and disabled by default for production. However, the developer can choose to override that behavior (for example, for debugging) by manually settingVue.config.devtools = true
. However, this same lenience is not afforded toVue.config.performance
. Even if explicitly enabling it, the developer's setting will be overridden by Vue in production.What does the proposed API look like?
This proposed solution brings
Vue.config.performance
in line withVue.config.devtools
, by disabling it by default in production, but gives the developer the ability to explicitly ��enable it; for example, for debugging performance issues.The text was updated successfully, but these errors were encountered: