You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Babel::Transpiler.transform method will return a hash where the code key is a giant string of the converted code. Just write that to a file, and call it "whatever.js".
Hi,
I am novice to ruby also es6
have created file foo.es6 which contains below code
in ubuntu command line
sudo gem install babel-transpiler
-which installed babel-gem
then running ruby file esjs.rb
will this convert es6 to js??
The text was updated successfully, but these errors were encountered: