import { PropertyFactory } from './types' ; export const requireSyncMethod = ( { types : t , template } ) => { return ( ) => t . objectMethod ( 'method' , t . identifier ( 'requireSync' ) , [ t . identifier ( 'props' ) ] , t . blockStatement ( [ t . returnStatement ( t . callExpression ( t . identifier ( '__webpack_require__' ) , [ t . callExpression ( t . memberExpression ( t . thisExpression ( ) , t . identifier ( 'resolve' ) ) , [ t . identifier ( 'props' ) , ] ) , ] ) ) , ] ) ) ; } ;