src/macro/index.js
function toObjectExpression (obj, {types: t, template}) {
  const properties = []

  for (let key in obj) {
    properties.push(t.objectProperty(t.stringLiteral(key), obj[key]))
  }

  return t.objectExpression(properties)
}
function toObjectExpression (obj, {types: t, template}) {
  const properties = []

  for (let key in obj) {
    properties.push(t.objectProperty(t.stringLiteral(key), obj[key]))
  }

  return t.objectExpression(properties)
}
function toObjectExpression ( obj , { types : t , template } ) { const properties = [ ] for ( let key in obj ) { properties . push ( t . objectProperty ( t . stringLiteral ( key ) , obj [ key ] ) ) } return t . objectExpression ( properties ) }
creates a Babel object expression from a Javascript object with string keys
creates a Babel object expression from a Javascript object with string keys