method ImportMeta.resolve
Jump to headingImportMeta.resolve(specifier: string): stringA function that returns resolved specifier as if it would be imported
using import(specifier).
console.log(import.meta.resolve("./foo.js"));
// file:///dev/foo.js
Parameters Jump to heading
Jump to headingspecifier: stringReturn Type Jump to heading
string