fn try_resolve_with_extensions(base_path: &Path) -> Option<PathBuf>Expand description
Tries to resolve a path by checking various file extensions. Handles three cases:
- Path already has a valid extension (e.g.,
.js,.ts) - use as-is - Path has a partial extension (e.g.,
.stylex) - append additional extensions - Path has no extension - try each extension
Returns Some(path) if a valid file is found, None otherwise.