Skip to main content

js_ts_module_segments

Function js_ts_module_segments 

Source
pub fn js_ts_module_segments(path: &Path) -> Vec<String>
Expand description

Split a workspace-relative JS/TS path into module-identity segments. The trailing source extension is stripped so src/utils/log.ts becomes ["src", "utils", "log"]. Skips path roots and parent (..) components.