DEV Community

loading...

Discussion on: Writing ES6 in your Node.js Applications

Collapse
kepta profile image
Kushan Joshi

My point is that you don't need Babel to use modern ES6 features. If you could tell me which ES6 feature you are getting by using Babel. If you are talking about ESM (EcmaScript Modules), Babel doesn't really give you ESM it simply allows you to write the import x from y style and transpiles it back to CJS.

Thread Thread
danl profile image
Dan L.

I'm using Node 10.16.0. Is ESM best way to enable ES6 for NodeJS? (I currently use 'nodemon -r esm')

thanks!