V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
e8c47a0d
V2EX  ›  Node.js

可以完全使用 import export 代替 require 和 module.exports 吗?

  •  
  •   e8c47a0d · 2018-03-07 16:11:05 +08:00 · 4133 次点击
    这是一个创建于 2213 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    2018-03-07 22:26:22 +08:00
    flowfire
        1
    flowfire  
       2018-03-07 21:15:56 +08:00 via iPhone
    可以
    greatbody
        2
    greatbody  
       2018-03-07 22:26:22 +08:00
    you can use rollup to compile you code written in ES7.

    even use arrow function .
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   980 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:13 · PVG 04:13 · LAX 13:13 · JFK 16:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.