Skip to content

Commit

Permalink
fix(compat): don't warn deprecation if compat config is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
noootwo committed Nov 20, 2024
1 parent a20a4cb commit a5817ed
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 @@ -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
}

Expand Down

0 comments on commit a5817ed

Please sign in to comment.