What is the difference between babel-core and @babel/core?
17,100
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.
Related videos on Youtube
Comments
-
YulePale over 3 years
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.
-
mcmxc over 5 yearsdo I need both of them or just the newer/older one?
-
MichaelDeBoey over 5 years@mcmxc Since you want only one version of a certain dependency and
@babel/core
isv7
ofbabel-core
, you should only install one of them (I would install@babel/core
if it's a new dependency)