Thursday 20 April 2017

Using ES6 in Node.js

Iv'e been writing React apps for the last few months- and I used babel with the right presets (es2015, react) to transpile it to a bundled file.

I wish to write the server from scratch, in Node 7.9.0. Now, I know that es6 named imports are not supported yet (and if they will ever be..). Also the usage of "let" vs "var" and other es6 nice stuff.

So as far as I understand- I have no choice but staying with the "regular" features, since using babel for production is not recommended.

Is it truly the case? or there's an alternative? And are there any resources for the "recommended" ways to write node app for the moment?



via Chen

No comments:

Post a Comment