floatdrop / plugin-jsx

JSX loader plugin
MIT License
36 stars 10 forks source link

Support ES6 style templates #3

Closed prayerslayer closed 9 years ago

prayerslayer commented 9 years ago

As described here.

floatdrop commented 9 years ago

Merged in beta branch. Usage:

jspm install jsx@beta

asaf commented 9 years ago

@floatdrop Beta is broken? i'm getting errors for any file I try to import.

floatdrop commented 9 years ago

@asaf use latest version (1.1.0) - it have react@^0.13 as dependency now.

asaf commented 9 years ago

@floatdrop Thanks, tried with 1.1.0, I fail to use property initializers as described here (http://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html),

Should it be supported by this plugin?

floatdrop commented 9 years ago

@asaf dunno, they could drop this feature on release. I recommend to use babel, because of react-tools deprecation: http://facebook.github.io/react/blog/2015/06/12/deprecating-jstransform-and-react-tools.html

asaf commented 9 years ago

@floatdrop Thanks, this plugin supports Babel ? I see that it uses jstransform which uses react tools........

floatdrop commented 9 years ago

@asaf jspm can automatically use babel transpiler without external plugins - here is related issue https://github.com/jspm/jspm-cli/issues/566

asaf commented 9 years ago

@floatdrop Awesome, thanks!