pub async fn build_node_module_paths(
fs: &dyn Fs,
import_paths: &[Url],
recursive: bool,
) -> Result<Vec<Url>>Expand description
Discover all node module paths starting from the given import URLs.
Mirrors ModuleStateBuilder.buildNodeModulePaths.
When recursive is true, each discovered package is also scanned for its own
nested node_modules/. Set it to false (the common case with npm v3+ hoisting)
to avoid hundreds of extra read_dir calls.