export default function transformer(file, api) { const j = api.jscodeshift; return j(file.source) .find(j.BindExpression) .forEach(path => { j(path).replaceWith(path => j.callExpression( j.memberExpression( path.node.callee, j.identifier("bind") ), [j.thisExpression()] ) ); }) .toSource(); } // module.exports.parser = 'babel';