redguardtoo / js-comint

js-comint will send the code from Emacs into node.js or rhino
GNU General Public License v3.0
69 stars 22 forks source link

support babel, convert es6 to es5 before evaluation #15

Open redguardtoo opened 7 years ago

redguardtoo commented 7 years ago

see https://github.com/babel/babel/blob/7.0/packages/babel-cli/src/babel/file.js#L99

and https://github.com/babel/babel/blob/7.0/packages/babel-cli/src/babel/util.js#L42

just calling babel.transform and setup some options. Now I just need figure out how to read .babelrc

redguardtoo commented 6 years ago

NodeJS 8 does not handle this issue.