Resolve an import URL or string as if it were coming from the module at parentURL.
Returns a string for node builtin modules, and a file:// URL object for anything resolved on disk.
If the resolution is impossible, then an error will be raised, which closely matches the errors raised by Node when failing for the same reason.
the thing being imported
the place the import() would be coming from. Required for relative imports.
Resolve an import URL or string as if it were coming from the module at parentURL.
Returns a string for node builtin modules, and a file:// URL object for anything resolved on disk.
If the resolution is impossible, then an error will be raised, which closely matches the errors raised by Node when failing for the same reason.