UNPKG

@gitlab/ui

Version:
6 lines (3 loc) 170 B
import { isVue3 } from '../vue'; const getInstanceFromDirective = (vnode, bindings) => isVue3 ? bindings.instance : vnode.context; export { getInstanceFromDirective };