NodemoduleImportMeta.resolvemethod ImportMeta.resolve#ImportMeta.resolve(specifier: string,parent?: string | URL | undefined,): 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 ##specifier: stringThe module specifier to resolve relative to parent. optional#parent: string | URL | undefinedThe absolute parent module URL to resolve from. Return Type #stringThe absolute (file:) URL string for the resolved module.
method ImportMeta.resolve#ImportMeta.resolve(specifier: string,parent?: string | URL | undefined,): 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 ##specifier: stringThe module specifier to resolve relative to parent. optional#parent: string | URL | undefinedThe absolute parent module URL to resolve from. Return Type #stringThe absolute (file:) URL string for the resolved module.