unwrapTSNode
} from './utils'
import { BindingTypes } from '@vue/compiler-dom'
+import { warnOnce } from '../warn'
export const DEFINE_MODEL = 'defineModel'
if (!ctx.options.defineModel || !isCallOf(node, DEFINE_MODEL)) {
return false
}
+
+ warnOnce(
+ `This project is using defineModel(), which is an experimental ` +
+ ` feature. It may receive breaking changes or be removed in the future, so ` +
+ `use at your own risk.\n` +
+ `To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/503.`
+ )
+
ctx.hasDefineModelCall = true
const type =
import { isCallOf, resolveObjectKey, unwrapTSNode } from './utils'
import { ScriptCompileContext } from './context'
import { DEFINE_PROPS } from './defineProps'
+import { warnOnce } from '../warn'
export function processPropsDestructure(
ctx: ScriptCompileContext,
return
}
+ warnOnce(
+ `This project is using reactive props destructure, which is an experimental ` +
+ ` feature. It may receive breaking changes or be removed in the future, so ` +
+ `use at your own risk.\n` +
+ `To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/502.`
+ )
+
ctx.propsDestructureDecl = declId
const registerBinding = (