Why add <script> tag when integrating sentry?

in this docs it is said that I need to add this script tag
<script src="https://cdn.ravenjs.com/3.24.1/raven.min.js" crossorigin="anonymous"></script>

And I ask why? everything works perfectly with using only the ‘raven-js’ lib from npm

thanks

If you’re installing from npm, you don’t need this. It’s just generic instructions without assuming someone is using npm or any other ability to bundle their own libraries. For lots of people, it’s easier to just hotlink from our CDN.