Open jemgold opened 9 years ago
Yuck, this seems like a pretty general problem for Meteor.
Some existing discussion: https://github.com/meteor/meteor/pull/1207
Currently I've disabled jsx support in babel to avoid the conflict https://github.com/grigio/meteor-babel/issues/10 so at least it works. @benjamn in the future who will compile jsx ? react-tools or babel ?
+1 I'd like to use Babel without using a fork of the official ReactJS repo!
@adambrodzinski which fork did you end up using?
@nicksergeant I had my own fork that removed the JSX compiling... however now i've switched back to reactjs:react
and babel for js files. The only snag is I think JSX ES6 classes in the current reactjs:react
force a full reload for CSS changes.
However this isn't a huge deal as it's hard to use the Meteor mixin with ES6 anyway.
Oh! How are you able to have Babel compile the JSX files without React also conflicting if you're using the standard repo?
The reason I ask is that I'm having an issue with react-meteor's JSX compilation step breaking meteor build: https://github.com/reactjs/react-meteor/issues/91
@nicksergeant can't remember how I did it offhand. However soon Meteor will be transpiling ES6 and their React package will use that instead of the JSX transformer. Can't wait :smile:
Yeah, that will be great!
Given that react-tools is deprecated now, maybe support should be dropped entirely and Babel recommended instead?
Forcing compilation with react-tools stops you from using Babel -
Not a huge deal, but Babel supports way more ES6 fun stuff than react-tools.