[英]babel-cli vs babel-preset-es2015 vs babel-register vs babel-core?
What are all these babel dependencies? 这些babel依赖是什么? What are each of them for and how do they differ?
它们各有什么不同,它们有何不同? Which one should I use for my nodejs web app?
我应该将哪一个用于我的nodejs网络应用程序?
I have looked on the API website but is there any guide that puts these into simple human English? 我查看了API网站,但有没有指南将这些简单的人类英语?
In simple terms: 简单来说:
Basically, you could use "babel-register" during development with the "babel-preset-es2015" package set. 基本上,您可以在开发过程中使用“babel-register-es2015”软件包进行“babel-register”。 Then use "babel-cli" or "babel-core" to compile your files before production.
然后使用“babel-cli”或“babel-core”在生产之前编译文件。
I hope that helps. 我希望有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.