method ImportMeta.resolve
Jump to headingImportMeta.resolve(specifier: string): string
A 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: string
Return Type Jump to heading
string