method ImportMeta.resolveImportMeta.resolve(specifier: string): stringDeprecatedA 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 Parametersspecifier: stringReturn Typestring