fix(node): correct resolution of dynamic import of esm from cjs (#27071)

Ensures a dynamic import in a CJS file will consider the referrer as an import for node resolution.

Also adds fixes (adds) support for `"resolution-mode"` in TypeScript.
This commit is contained in:
David Sherret 2024-11-26 14:38:24 -05:00 committed by GitHub
parent c443ac5d14
commit 115a306656
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
92 changed files with 868 additions and 1673 deletions

View file

@ -23,9 +23,9 @@ pub use package_json::PackageJsonThreadLocalCache;
pub use path::PathClean;
pub use resolution::parse_npm_pkg_name;
pub use resolution::resolve_specifier_into_node_modules;
pub use resolution::NodeModuleKind;
pub use resolution::NodeResolution;
pub use resolution::NodeResolutionMode;
pub use resolution::NodeResolutionKind;
pub use resolution::NodeResolver;
pub use resolution::ResolutionMode;
pub use resolution::DEFAULT_CONDITIONS;
pub use resolution::REQUIRE_CONDITIONS;