Expand description
Path helpers used to build the module specifiers of the injected dictionary imports.
Functionsยง
- normalize_
path - Normalises a path string to use forward slashes and consistent drive-letter
casing so that
pathdiff::diff_pathsworks correctly in Wasm / cross-platform contexts where Windows-style paths may arrive from the JS host. - relative_
import_ path - Computes the module specifier for an injected dictionary import: the path
of
dict_file_absrelative tofrom_dir_abs, using forward slashes and a leading./when the path is not already relative. Falls back to the absolute path when no relative path exists (e.g. different drives).