diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-11-07 09:56:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 09:56:06 -0500 |
commit | 9201198efd6fb116585d4c26111669f4c1006e5d (patch) | |
tree | 746b2283da7edb457cea5eced2bc6cd7b42b8067 /cli/args/mod.rs | |
parent | 50e4806a2db66be289aa123a0bfd8dd8688712ba (diff) |
fix(node): inspect ancestor directories when resolving cjs re-exports during analysis (#21104)
If a CJS re-export can't be resolved, it will check the ancestor
directories, which is more similar to what `require` does at runtime.
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 4acbb1763..9c113acd2 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -924,7 +924,7 @@ impl CliOptions { } pub fn has_node_modules_dir(&self) -> bool { - self.maybe_node_modules_folder.is_some() + self.maybe_node_modules_folder.is_some() || self.unstable_byonm() } pub fn node_modules_dir_path(&self) -> Option<PathBuf> { |