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

BabeljsBabel LoaderBabel Jest

Babeljs Problem Overview


What is the difference between https://www.npmjs.com/package/babel-core">babel-core</a> and https://www.npmjs.com/package/@babel/core">@babel/core</a> ?

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.

Babeljs Solutions


Solution 1 - Babeljs

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionYulePaleView Question on Stackoverflow
Solution 1 - BabeljsMichaelDeBoeyView Answer on Stackoverflow