egg icon indicating copy to clipboard operation
egg copied to clipboard

egg.js 编写代码时支持 es6 module写法吗

Open CNYeFeng opened this issue 8 years ago • 1 comments

egg.js 编写代码时支持 es6 module写法吗? 如何优雅的支持

CNYeFeng avatar Oct 30 '18 11:10 CNYeFeng

不支持,没有任何好处,而且现在也不是 Node 支持的特性,还在试验。

你真有需求,就直接用 TS 写 egg,或者自己 babel 编译

atian25 avatar Oct 30 '18 13:10 atian25