search

Home  >  Q&A  >  body text

exports - 最新版本的 node.js(7.0版) 支持 ES7 import/export 吗?怎么开启?

最新版本的 node.js(7.0版) 支持 ES7 import/export 吗?怎么开启?

伊谢尔伦伊谢尔伦2784 days ago464

reply all(4)I'll reply

  • 怪我咯

    怪我咯2017-04-17 15:39:47

    node7.0 does not support import/export...
    This is not a standard proposal in es6
    It seems to be in es7 (don’t correct me below)

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 15:39:47

    @夜店小新新 In addition to compiling, is there any other more direct way?

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 15:39:47

    @夜场小新新
    No, it is the standard of es6, but the standard is that there is no engine to implement it yet, because it involves many historical factors. For details, please see
    https://segmentfault.com/a/11...

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:39:47

    Can be compiled using Babel

    reply
    0
  • Cancelreply