MCPcopy Create free account
hub / github.com/reactjs/react-rails / innerTransform

Function innerTransform

lib/assets/javascripts/JSXTransformer.js:416–436  ·  view source on GitHub ↗
(input, options)

Source from the content-addressed store, hash-verified

414}
415
416function innerTransform(input, options) {
417 var visitorSets = ['react'];
418 if (options.harmony) {
419 visitorSets.push('harmony');
420 }
421
422 if (options.es3) {
423 visitorSets.push('es3');
424 }
425
426 if (options.stripTypes) {
427 // Stripping types needs to happen before the other transforms
428 // unfortunately, due to bad interactions. For example,
429 // es6-rest-param-visitors conflict with stripping rest param type
430 // annotation
431 input = transform(typesSyntax.visitorList, input, options).code;
432 }
433
434 var visitorList = visitors.getVisitorsBySet(visitorSets);
435 return transform(visitorList, input, options);
436}
437
438},{"./vendor/fbtransform/visitors":40,"./vendor/inline-source-map":41,"jstransform":22,"jstransform/visitors/type-syntax":36}],3:[function(_dereq_,module,exports){
439/*!

Callers 1

JSXTransformer.jsFile · 0.85

Calls 1

transformFunction · 0.85

Tested by

no test coverage detected