I have a hard time of understanding the difference between the two. Can someone explain why @babel/preset-env
is more beneficial regarding to its targets
?
Asked
Active
Viewed 1,532 times
8

desertnaut
- 57,590
- 26
- 140
- 166

GoOlga
- 214
- 1
- 8
1 Answers
4
All packages prefixed with @ are part of the Babel 7 family. A few years ago, npm released their scoped packages feature that enables organisations to publish multiple libraries that all start with @insert_name_here
, have a slash (/
) in between and end with the library's name. Just like:
@babel/preset-env
Also, when they transitioned from version 6 to 7, they started to use a monorepo, which made it much easier to use the scoped packages feature.

Paul Razvan Berg
- 16,949
- 9
- 76
- 114