mirror of
https://github.com/hanzoai/unrs-resolver.git
synced 2026-09-24 17:03:52 +00:00
## Summary - Fix `dts_resolve_esm_match` to try TS/declaration extension substitution (e.g. `.mjs` → `.d.mts`) **before** checking if the original JS file exists, matching TypeScript's `loadFileNameFromPackageJsonField` behavior - Previously, `resolveDtsSync` would return `.mjs` instead of `.d.mts` for packages like `magic-string` that have both the JS entry and its declaration file Closes #1046 --------- Co-authored-by: Hanzo Dev <[email protected]>