Babel option
Closed this issue · 5 comments
Hi,
I want to use your plugin, but i faced a problem, that there are no ability to use babel transformation instead of react tools.
Are you plan to provide this ability?
There's 1 line that does the actual transform:
compiled = react.transform(code);
Plus some other setup to ensure that the above line doesn't fail.
The transformer could be passed in and then instantiated accordingly.
Have you considered forking and adding this yourself?
Babel should be a requirement because the react team is deprecating the react-tools. Read more here
Have you considered adding the support yourself?
Maybe something in the options like
transformer: 'babel'
and
compiled = props.transformer == 'babel' ? babel.compile(code) : react.transform(code);
would be sufficient?
That said, how many different options can be passed to babel that might need to be included in the jshint grunt task?
BTW #28
closed by #28