babel / ruby-babel-transpiler

Ruby Babel is a bridge to the JS Babel transpiler.
https://github.com/babel/ruby-babel-transpiler
MIT License
160 stars 27 forks source link

Support for .babelrc? #287

Open butsjoh opened 8 years ago

butsjoh commented 8 years ago

Does the transpiler respect the .babelrc file for including extensions?

I am using react-rails and i would like to include https://github.com/gaearon/react-transform-catch-errors as well. This is possible through adding it to the .babelrc file. I tried but it is not doing anything. I am expecting to much? :)

Would like to have some thoughts on my issue.

ralekna commented 8 years ago

I'm pretty sure that .babelrc works only for babel-cli. Ruby-babel-transpiler works in isolated ExecJS environment and doesn't take .babelrc for configuration.