Node.js plans to support import/export ES6 (ECMAScript 2015) modules

I’ve been looking all over the Internet without a clear answer for this.

Currently Node.js uses only CommonJS syntax to load modules, and if you really want to use the standard ECMAScript 2015 modules syntax, you either have to transpile it beforehand or use an external module loader at runtime.

Currently I’m not too positive to use either of those two methods, are the Node.js maintainers even planning to support ECMAScript 2015 modules or not? I haven’t found an hint at all about this.

At the moment Node.js 6.x claims to support 96% of the ECMAScript 2015 features, but there isn’t any reference to modules (Node.js ECMAScript 2015 support link).

Do you know if Node.js will support these modules out of the box, in the near future?

1 Answer
1

Leave a Comment