get-instance-from-directive.js 139 Bytes Edit Raw Blame History 1 2 3 4 import { isVue3 } from '../vue' export const getInstanceFromDirective = (vnode, bindings) => isVue3 ? bindings.instance : vnode.context