摘要: node 从 v8.5.0起 支持了 ES6 module。 只需保存文件名为 .mjs ,并通过一个option 可以开启执行,如 node --experimental-modules index.mjs 但是,在 npm cli 中如何开启呢? 辗转反侧,通过 shebang 能够达到目的, 阅读全文
posted @ 2018-02-28 15:24 死宅程序员 阅读(2145) 评论(0) 推荐(0) 编辑