summaryrefslogtreecommitdiff
path: root/ext/node/errors.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-11-07 09:56:06 -0500
committerGitHub <noreply@github.com>2023-11-07 09:56:06 -0500
commit9201198efd6fb116585d4c26111669f4c1006e5d (patch)
tree746b2283da7edb457cea5eced2bc6cd7b42b8067 /ext/node/errors.rs
parent50e4806a2db66be289aa123a0bfd8dd8688712ba (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 'ext/node/errors.rs')
-rw-r--r--ext/node/errors.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/node/errors.rs b/ext/node/errors.rs
index e07a8347a..f34707c66 100644
--- a/ext/node/errors.rs
+++ b/ext/node/errors.rs
@@ -45,7 +45,6 @@ pub fn err_invalid_package_config(
generic_error(msg)
}
-#[allow(unused)]
pub fn err_module_not_found(path: &str, base: &str, typ: &str) -> AnyError {
generic_error(format!(
"[ERR_MODULE_NOT_FOUND] Cannot find {typ} \"{path}\" imported from \"{base}\""