Comment by mahboi

2 months ago

You can pin versions. If you aren't, you have the same issue with regular npm.

> You can pin versions.

You can, but you won't. Let's be real for a second now - the only reason you use this feature is because you can't be bothered to use a real package manager that pins versions.

  • The reason is if you have a small script as a single js file and don't want a separate package file and build step. The given example was ^5, same effort as =5. I guess you can also import different versions in different files?