Skip to main content

runtime_import_for

Function runtime_import_for 

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

Compute the runtime import specifier for a module at from_source. For a file at commerce/payment.ts the runtime sits two levels up, so this returns ../runtime.js; for a top-level file it returns ./runtime.js.