`import.meta.url` as URL instead of string · Issue #13 · tc39/proposal-import-meta
Shouldn't import.meta.url be an instance of URL? As a string it requires some manipulation to for instance mimic Node's __filename: const __filename = import.meta.url.replace(/^file:\/\//', ''); wh...