]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: avoid compat disabled error for built-in components
authorEvan You <yyx990803@gmail.com>
Wed, 2 Jun 2021 20:06:09 +0000 (16:06 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 2 Jun 2021 20:06:09 +0000 (16:06 -0400)
packages/runtime-core/src/compat/compatConfig.ts

index f87831ee627fa64bf3fb540aedb85cb1396b8ae0..a6ab9854bbe2f00117389c182304490469c7a71a 100644 (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.`