Re:Node.js v6.0 Released
by inglor on Tuesday April 26, 2016 @05:53PM
(#11576028)
There is/was a vote on this pretty soon. We are deciding how modules would work - with a new file extension? With a module.json? With a separate entry entry in package.json? Lots of decisions to be made :)
[ Parent
| on HN ]
Re:Node.js v6.0 Released
by abritinthebay on Tuesday April 26, 2016 @06:45PM
(#11576385)
Surely they should work the way they work in ES6?
Any solution that requires extra work (file extension, another file to maintain) is a non-starter.
Frankly it should work how Babel transpiles it - because there's no reason for it not to.
ES6 didn't define precisely how module loading worked, one of the reasons it isn't actually implemented yet. And there are actual reasons why the method babel currently uses won't precisely match the actual implementations (see hierarchal v flat dependencies)
Re:Node.js v6.0 Released
by abritinthebay on Tuesday April 26, 2016 @09:38PM
(#11577242)
Those problems are just as present in CJS as far as I'm aware though...?
Yet they were solved for that.
Vote was at: https://github.com/nodejs/node/issues/5648