wouldn't this just be
`requireModule("<%= package.barename %>")['default']` ?