Using URLs is like having an iframe to somebody else's website on your website.
For large projects like React, lodash, eslint whatever, I expect some of them will start hosting their libraries on their own networks, like it used to be when Javascript was only frontend and you would have a script tag importing jQuery directly from jQuery's CDN. The reason it worked was because jQuery was sidely known and trusted.
My understanding is these are loaded from URLs if they are not in the cache. If a domain changes hands, you could be served anything.