resolve
abstract fun resolve(specifier: String, parent: <Error class: unknown class>? = definedExternally): String(source)
Provides 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.
Since
v20.6.0
Parameters
specifier
The module specifier to resolve relative to parent
.
parent
The absolute parent module URL to resolve from.