Deno literally did this[1] in order to be browser-compatible[2], and everybody whinged about it. I happen to love that I can just import an HTTPS URL inside Deno code. It's really nice for playing around with libraries, writing little scripts that pull in dependencies, etc.
[1] https://docs.deno.com/runtime/manual/basics/modules/#remote-...
[2] https://html.spec.whatwg.org/multipage/webappapis.html#modul...