我可以在Node.js 8中使用ES6模块吗? [重复]

时间:2021-08-11 15:40:13

This question already has an answer here:

这个问题在这里已有答案:

Can I use ES6 module syntax with Node.js starting from version 8? Similar questions have already been asked on this site, but answers there are obsolete. I wonder if the situation has changed with new version of Node.js?

我可以从版本8开始使用ES6模块语法和Node.js吗?在这个网站上已经提出过类似的问题,但是答案已经过时了。我想知道Node.js的新版本情况是否已经改变了?

1 个解决方案

#1


9  

https://medium.com/the-node-js-collection/an-update-on-es6-modules-in-node-js-42c958b890c

https://medium.com/the-node-js-collection/an-update-on-es6-modules-in-node-js-42c958b890c

It is in progress but the ETA is 2018 at the earliest.

它正在进行中,但ETA最早是2018年。

#1


9  

https://medium.com/the-node-js-collection/an-update-on-es6-modules-in-node-js-42c958b890c

https://medium.com/the-node-js-collection/an-update-on-es6-modules-in-node-js-42c958b890c

It is in progress but the ETA is 2018 at the earliest.

它正在进行中,但ETA最早是2018年。