Skip to main content

cross_commons_import_specifier_for_path

Function cross_commons_import_specifier_for_path 

Source
pub fn cross_commons_import_specifier_for_path(
    from_source: &Path,
    target_source: &Path,
    ext: ImportExt,
) -> String
Expand description

Compute a relative import specifier from this file’s location to a specific source file in another commons. target_source is the project- relative path of the target .bynk file. The result is suitable for import { ... } from "..." in NodeNext/strict TypeScript.