babel-core和@ babel/core有什么区别? [英] What is the difference between babel-core and @babel/core?
本文介绍了babel-core和@ babel/core有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
之间有什么区别 babel-core 和
What is the difference between babel-core and @babel/core ?
它们是相同的东西但版本不同吗?如果不是这样,什么时候使用一个,什么时候使用另一个?
Are they the same thing but different versions? If not so, when do you use one and when do you use the other?
谢谢.
推荐答案
自Babel 7起,Babel团队改用作用域软件包,因此您现在必须使用@babel/core
而不是babel-core
.
但实质上,@babel/core
只是babel-core
的较新版本.
Since Babel 7 the Babel team switched to scoped packages, so you now have to use @babel/core
instead of babel-core
.
But in essence, @babel/core
is just a newer version of babel-core
.
这样做是为了更好地区分哪些软件包是官方软件包,哪些是第三方软件包.
This is done to make a better distinction which packages are official and which are third-party.
这篇关于babel-core和@ babel/core有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文