node.js - 为什么Nodejs未支持import、export ES6特性?
迷茫
迷茫 2017-04-17 15:08:02
0
3
654

在nodejs官网上看到最新版的nodejs对于es6的语法支持已经足够好了,但是没看到import、export的支持。我们还是得用require、module.exports。既然es6已经对模块化有了规范。感觉前后端应该统一使用。那么nodejs未来会支持么?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
小葫芦

import, export are only drafts and have not been passed

巴扎黑
  1. Personally, I think there is no problem in unifying language and standards

  2. There are still differences in the usage scenarios of the front and back ends. Although they are both JS, they do not necessarily have to be unified

  3. It is likely to be supported in the future

Peter_Zhu

Future support is for sure.
Upgrading a new feature often requires compatibility with older versions of the code.
If you need to use the latest features, it is recommended to use io.js

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template