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

YulePale picture YulePale · Nov 19, 2018 · Viewed 11.9k times · Source

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.

Answer

MichaelDeBoey picture MichaelDeBoey · Nov 20, 2018

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.