chore: avoid compat disabled error for built-in components

This commit is contained in:
Evan You 2021-06-02 16:06:09 -04:00
parent 9acc9a1fa8
commit 2b5a559055

View File

@ -502,7 +502,7 @@ export function warnDeprecation(
typeof message === 'function' ? message(...args) : message
}${link ? `\n Details: ${link}` : ``}`
)
if (!isCompatEnabled(key, instance)) {
if (!isCompatEnabled(key, instance, true)) {
console.error(
`^ The above deprecation's compat behavior is disabled and will likely ` +
`lead to runtime errors.`