atom-community / atom-script

:runner: Run ( scripts | selections | source ) in Atom
https://atom.io/packages/script
MIT License
732 stars 268 forks source link

How to override babel default runner? #1306

Open asci opened 7 years ago

asci commented 7 years ago

Hello,

Is there any way to override this line https://github.com/rgbkrk/atom-script/blob/master/lib/grammars.coffee#L44 ?

babel-node needs around 3 seconds to start, when node less than half a second

rgbkrk commented 7 years ago

What happens when it runs now?

asci commented 7 years ago

it runs with babel-node which needs around 3 seconds to start. I'm using the lastest node so, I don't need babel-node for most of my cases. Of course, I can remove babel grammar from atom, but I need it during work on frontend scripts (which I mostly don't need to run with atom-script)

MaxGraey commented 6 years ago

Also should mentioned if we have possibility to disable somehow node-babel (or get rid of it at all) usage it will be great. For example I have node v10.4.0 which support BigInt. But script plugin using pretty old version of node-babel which doesn't support this.