google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.18k stars 580 forks source link

Add support for parsing JSX #1994

Closed arv closed 8 years ago

arv commented 8 years ago

This adds support for Facebook's JSX syntax.

https://facebook.github.io/jsx/

The only thing that is not implemented is JSXSpreadAttribute.

The option to turn this on is called jsx. You can provide your own function to call by setting this option to a string. --jsx=my.func. If not set it defaults to React.createElement.

arv commented 8 years ago

@johnjbarton I'm back!

johnjbarton commented 8 years ago

LGTM