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,320 times
8
desertnaut
- 52,940
- 19
- 125
- 157
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
- 10,820
- 7
- 50
- 86