I don't know why in some project people use babel for node.js. I'm using node 6.9 I can write es6 without any problem, you name the feature, default argument in function, arrow function, rest and spread. Is babel really necessary in node?
The only thing I can't do is using import instead of required.
Usually people use babel for node < 6.0 since those versions don't cover es6 that much.
Moreover node 6.9 doesn't cover es6 totally (ex : async/await functions, import syntaxe, ....)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.