isRemoteInput(input: string): boolean
Whether an input names something on a server rather than on this disk.
http and https only. A file:// URL is a path spelled the long way and has no business
going through a fetch, and no other scheme has a body to bundle.
import { isRemoteInput } from './remote-inputs.ts'; isRemoteInput('https://example.com/tests/cart-test.js'); // true isRemoteInput('test/cart-test.ts'); // false isRemoteInput('file:///tmp/a.ts'); // false — that is a path, and fs can read it