An Update on ES6 Modules in Node.js
James M Snell

I also am not a fan of changing the extension, especially if there are good proposals on how to avoid it. Also as for named imports from Common.JS modules. I don’t mind if they are not live bindings … if named imports from CommonJS are forbidden I would have to re-write nice code like:

const {foo, bar} = require(‘mod’);


import mod from mod;
const {foo, bar} = mod;

And why? Only to satisfy 100% spec correctness. Node is in its own world, with its global objects, __dirname etc. why not make slight adjustments to make life easier for the users like Babel does?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.