ruby-babel-transpiler icon indicating copy to clipboard operation
ruby-babel-transpiler copied to clipboard

ERROR on jruby

Open jbmyid opened this issue 8 years ago • 0 comments

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.

jbmyid avatar Jun 16 '17 13:06 jbmyid