From 9201198efd6fb116585d4c26111669f4c1006e5d Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 7 Nov 2023 09:56:06 -0500 Subject: 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. --- ext/node/errors.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'ext/node/errors.rs') 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}\"" -- cgit v1.2.3