SIGN IN SIGN UP
denoland / deno UNCLAIMED

A modern runtime for JavaScript and TypeScript.

0 0 16 Rust

fix(node): support module-sync export condition (#34599)

Closes denoland/orchid#350
Fixes https://github.com/denoland/deno/issues/29970

## Summary
- add `module-sync` to the default npm package export conditions for
both import and require resolution
- include `module-sync` in CJS analyzer require-style re-export
resolution
- add npm spec coverage for a package whose `module-sync` conditional
export appears before `node` for both import and `createRequire()`

## Testing
- `cargo fmt --check`
- `cargo test -p node_resolver`

## Notes
- Attempted `cargo test specs::npm::module_sync_condition --
--no-capture`, but the filtered spec target was killed during the first
full CLI test binary build before reaching the test phase.

---------

Co-authored-by: divybot <divybot@users.noreply.github.com>
Co-authored-by: Divy Srivastava <me@littledivy.com>
E
em committed
0d99a423034d6659c9a5705fc46bc81f206e812f
Parent: 1251755
Committed by GitHub <noreply@github.com> on 5/31/2026, 12:26:05 PM