pub fn normalize_import_path(base: &str, relative: &str) -> StringExpand description
Normalize an IMPORT path identically on every OS and every surface: treat
both / and \ as separators, resolve relative against base’s directory,
collapse . / .., and re-join with /. Pure and no_std, so it does not
depend on the host (or the compile target’s) path semantics — a Windows-style
and a Unix-style import resolve to the same virtual path whether the resolver is
filesystem-, JS-callback-, or in-memory-backed. The single source of truth all
three Resolvers share.