r/javascript • __proto__ • May 30 '17

Node 8.0.0 released

https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md
319 Upvotes

56 comments sorted by

View all comments

Show parent comments

23

u/norlin May 30 '17

It's almost available in browsers, so it's always better to keep things the same way both in browser and in node. And since it's native way in Javascript, it should be used instead of requires.

0

u/[deleted] May 31 '17

[deleted]

5

u/[deleted] May 31 '17

CJS is non-standard JavaScript. The import/export syntax is the standard being adopted in browsers and should be adopted in Node as well.

If we're not getting Node to at least adhere to JavaScript standards then what's the point?

0

u/thepeka May 31 '17

This idea is so painfully out of touch with reality.

1

u/FormerGameDev Jun 02 '17

I'd vote for a separate branch that ditches CJS and just uses ES6. I'd use it, at least in some things.