What is the difference between babel-core and @babel/core?

半腔热情 提交于 2019-12-13 12:23:46

问题


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?

Thank you.


回答1:


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.



来源:https://stackoverflow.com/questions/53380741/what-is-the-difference-between-babel-core-and-babel-core

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!