method ImportMeta.resolve
Jump to headingImportMeta.resolve(specifier: string,parent?: ,): stringProvides a module-relative resolution function scoped to each module, returning the URL string.
Second parent parameter is only used when the --experimental-import-meta-resolve
command flag enabled.
Parameters Jump to heading
Jump to headingspecifier: stringThe module specifier to resolve relative to parent.
optional
Jump to headingparent: The absolute parent module URL to resolve from.
Return Type Jump to heading
stringThe absolute (file:) URL string for the resolved module.