e8c47a0d
V2EX  ›  Node.js

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

  •  
  •   e8c47a0d · Mar 7, 2018 · 4979 views
    This topic created in 3167 days ago, the information mentioned may be changed or developed.
    2 replies  •  2018-03-07 22:26:22 +08:00
    flowfire
    flowfire
    Mar 7, 2018 via iPhone
    1
    可以
    greatbody
    greatbody
    Mar 7, 2018
    2
    you can use rollup to compile you code written in ES7.

    even use arrow function .
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   685 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:30 · PVG 05:30 · LAX 13:30 · JFK 16:30
    ♥ Do have faith in what you're doing.