How to pre-run / run a .js file in Atom?

Given the following file and the recently downloaded version of Atom 1.0, how do I prep / run it?

"use babel";

function* count(n){
    console.log(n);
}

      

"Use babel" corresponds to this Atom blog post.

+3


source to share


1 answer


This pragma has to do with creating packages in the atom. If you want to translate with babel you need to use the Babel CLI or another method (task runner: grunt, gulp ie).



+2


source







All Articles