ruby-babel-transpiler
ruby-babel-transpiler copied to clipboard
ERROR on jruby
Basic example is not working on jruby IT gives following error
[11] pry(main)> Babel::Transpiler.transform "'red yellow blue'.split(' ')"
ExecJS::ProgramError:
from at (execjs):54362
Tried in ruby its working fine
Also I want to know how do i use plugin here: eg:
Babel::Transpiler.transform("[0, 2, 4].map(v => v + 1)", "plugins"=> [v])
what should be v here.