Re:Node.js v6.0 Released
by nostrademons on Tuesday April 26, 2016 @03:57PM
(#11575082)
The big missing thing is modules, which aren't in the kangax compatibility table.
[ Parent
| on HN ]
ES2015 did not include a loader specification, only a module specification. https://github.com/nodejs/node-eps/blob/master/002-es6-modul... is the interop that will be present for node but it is outside of JS spec itself.
In fairness, the babel approach to module handling is probably better than an in-browser es6 module implementation, or what may follow... compatibility with npm packages (cjs) will be significant for a while.
Re:Node.js v6.0 Released
by nostrademons on Tuesday April 26, 2016 @07:06PM
(#11576496)
My understanding is that V8 will provide hooks that parse the module imports, then delegate to the embedder to fetch the actual source code and hand it back to V8 to load. I'd expect that the Node implementation of these hooks would work the same way as the existing require() machinery, so that existing libraries will continue to work.