Преглед изворни кода

chore: avoid compat disabled error for built-in components

Evan You пре 4 година
родитељ
комит
2b5a559055
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/runtime-core/src/compat/compatConfig.ts

+ 1 - 1
packages/runtime-core/src/compat/compatConfig.ts

@@ -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.`