Import Modules via URL?

I’ve noticed that we can import third party libraries via NPM with a registered name, but is it possible to import JS or TS files via a URL like in Deno, Bun, or browsers? Something like import Lib from ‘https://my-host/example.ts’ I’ve had an error occur when I tried to do this
2 Replies
Cyb3r-Jak3
Cyb3r-Jak35mo ago
I don't believe so. It has to be installed
Hello, I’m Allie!
You might be able to build an esbuild plugin that pulls the module in? But it has to be bundled at build time