Skip to content

Commit

Permalink
chore: avoid compat disabled error for built-in components
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 2, 2021
1 parent 9acc9a1 commit 2b5a559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/compat/compatConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
Expand Down

0 comments on commit 2b5a559

Please sign in to comment.