MCPcopy
hub / github.com/vuejs/core / checkCompatEnabled

Function checkCompatEnabled

packages/compiler-core/src/compat/compatConfig.ts:117–128  ·  view source on GitHub ↗
(
  key: CompilerDeprecationTypes,
  context: MergedParserOptions | TransformContext,
  loc: SourceLocation | null,
  ...args: any[]
)

Source from the content-addressed store, hash-verified

115}
116
117export function checkCompatEnabled(
118 key: CompilerDeprecationTypes,
119 context: MergedParserOptions | TransformContext,
120 loc: SourceLocation | null,
121 ...args: any[]
122): boolean {
123 const enabled = isCompatEnabled(key, context)
124 if (__DEV__ && enabled) {
125 warnDeprecation(key, context, loc, ...args)
126 }
127 return enabled
128}
129
130export function warnDeprecation(
131 key: CompilerDeprecationTypes,

Callers 5

resolveModifiersFunction · 0.90
onattribendFunction · 0.90
onCloseTagFunction · 0.90
isComponentFunction · 0.90
buildPropsFunction · 0.90

Calls 2

isCompatEnabledFunction · 0.70
warnDeprecationFunction · 0.70

Tested by

no test coverage detected