import { PropertyFactory } from './types' ; export const resolveMethod = ( { types : t } ) => { return ( { importPath , funcPath } ) => { return t . objectMethod ( 'method' , t . identifier ( 'resolve' ) , funcPath . node . params ?? [ ] , t . blockStatement ( [ t . returnStatement ( t . callExpression ( t . memberExpression ( t . identifier ( 'require' ) , t . identifier ( 'resolveWeak' ) ) , [ importPath . get ( 'arguments' ) [ 0 ] . node ] ) ) , ] ) ) ; } ; } ;