Reputation: 22343
I see that, according to the Node js website,
Node.js now supports 93% of ES6 language features
I couldnt find a link to this list and wondered if one exists?
If there is no definative supported ES6 list then I would also like to know if Node 6 Can use import
statements without a transpiler?
Upvotes: 1
Views: 197
Reputation: 74670
No you can't use import
at the moment and don't expect it any time soon.
https://github.com/nodejs/node/issues/6526
ES6 modules fall into the missing 7%. It's still not clear how or even if Node will support these yet.
The V8 feature/bug for modules is also open. The module syntax/parser is defined in ECMAScript 2015. The loader isn't, which Google is using for it's implementation.
http://node.green/ has detailed Node.js support for ES6 features both protected and unprotected by --harmony
. Modules aren't in the table yet.
Upvotes: 2
Reputation: 13095
You can refer to the "Servers/Runtimes" column set of ES 6 compatibility table.
Imports can not be currently used without a transpiler. There is an open issue which you can track. The node team plans to integrate it once V8 supports it natively. It's implementation status is "In development" as per official Web Platform Features status page.
Upvotes: 1