Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
for-Each5396yNot really sure I’m following? ES6 is a set of standards...
Function x(x) {
}
Const x = (x) => {
} -
for-Each5396y@ScriptCoded If you’re talking specifically about import over require then yeah, babel is what you want
-
Yeah, when I think about it that's pretty much it. But how should I handle that with CD then? Building on my staging/production server?
-
You can use babel-node to run your code directly. It doesn't have a --watch flag, so you'll still need nodemon.
nodemon --exec babel-node index.js
Related Rants
How would you go about writing ES6 in your node applications? I'm using nodemon together with babel-core/register and then using a shell script on my server to build it.
question
es6
babel
js