mirror of https://github.com/vuejs/core.git
fix(compat): don't warn deprecation if compat config is disabled
This commit is contained in:
parent
a20a4cb36a
commit
a5817edc2f
|
@ -451,7 +451,7 @@ export function warnDeprecation(
|
|||
|
||||
// check user config
|
||||
const config = getCompatConfigForKey(key, instance)
|
||||
if (config === 'suppress-warning') {
|
||||
if (config === false || config === 'suppress-warning') {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue