From: Evan You Date: Wed, 2 Jun 2021 20:06:09 +0000 (-0400) Subject: chore: avoid compat disabled error for built-in components X-Git-Tag: v3.1.0-beta.7~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b5a5590554a692d6810b61c5b94df507707573d;p=thirdparty%2Fvuejs%2Fcore.git chore: avoid compat disabled error for built-in components --- diff --git a/packages/runtime-core/src/compat/compatConfig.ts b/packages/runtime-core/src/compat/compatConfig.ts index f87831ee62..a6ab9854bb 100644 --- a/packages/runtime-core/src/compat/compatConfig.ts +++ b/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.`