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