Skip to main content

ts_specifier

Function ts_specifier 

Source
pub fn ts_specifier(p: &Path) -> String
Expand description

Render a path as a TypeScript module specifier: always forward slashes. Path::display() uses the platform separator, and on Windows that emitted import ... from "./commerce\orders.js" — broken ESM output, caught by the first CI matrix run on windows-latest.