vendor/browser-transforms.js
function transformReact(source, options) {
  // TODO: just use react-tools
  options = options || {};
  var visitorList;
  if (options.harmony) {
    visitorList = visitors.getAllVisitors();
  } else {
    visitorList = visitors.transformVisitors.react;
  }

  if (options.stripTypes) {
    // Stripping types needs to happen before the other transforms
    // unfortunately, due to bad interactions. For example,
    // es6-rest-param-visitors conflict with stripping rest param type
    // annotation
    source = transform(typesSyntax.visitorList, source, options).code;
  }

  return transform(visitorList, source, {
    sourceMap: supportsAccessors && options.sourceMap
  });
}
function transformReact(source, options) {
  // TODO: just use react-tools
  options = options || {};
  var visitorList;
  if (options.harmony) {
    visitorList = visitors.getAllVisitors();
  } else {
    visitorList = visitors.transformVisitors.react;
  }

  if (options.stripTypes) {
    // Stripping types needs to happen before the other transforms
    // unfortunately, due to bad interactions. For example,
    // es6-rest-param-visitors conflict with stripping rest param type
    // annotation
    source = transform(typesSyntax.visitorList, source, options).code;
  }

  return transform(visitorList, source, {
    sourceMap: supportsAccessors && options.sourceMap
  });
}
function transformReact ( source , options ) { // TODO: just use react-tools options = options || { } ; var visitorList ; if ( options . harmony ) { visitorList = visitors . getAllVisitors ( ) ; } else { visitorList = visitors . transformVisitors . react ; } if ( options . stripTypes ) { // Stripping types needs to happen before the other transforms // unfortunately, due to bad interactions. For example, // es6-rest-param-visitors conflict with stripping rest param type // annotation source = transform ( typesSyntax . visitorList , source , options ) . code ; } return transform ( visitorList , source , { sourceMap : supportsAccessors && options . sourceMap } ) ; }
Run provided code through jstransform.

@param {string} source Original source code
@param {object?} options Options to pass to jstransform
@return {object} object as returned from jstransform
Run provided code through jstransform .