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

Function checkCompatEnabled

packages/runtime-core/src/compat/compatConfig.ts:625–635  ·  view source on GitHub ↗
(
  key: DeprecationTypes,
  instance: ComponentInternalInstance | null,
  ...args: any[]
)

Source from the content-addressed store, hash-verified

623 * e.g. render function
624 */
625export function checkCompatEnabled(
626 key: DeprecationTypes,
627 instance: ComponentInternalInstance | null,
628 ...args: any[]
629): boolean {
630 const enabled = isCompatEnabled(key, instance)
631 if (__DEV__ && enabled) {
632 warnDeprecation(key, instance, ...args)
633 }
634 return enabled
635}
636
637// run tests in v3 mode by default
638if (__TEST__) {

Callers 3

createWatcherFunction · 0.90
convertLegacyRenderFnFunction · 0.90
convertLegacyComponentFunction · 0.90

Calls 2

isCompatEnabledFunction · 0.70
warnDeprecationFunction · 0.70

Tested by

no test coverage detected