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 this2 Replies
I don't believe so. It has to be installed
You might be able to build an esbuild plugin that pulls the module in?
But it has to be bundled at build time