mirror of
https://github.com/hanzoai/unrs-resolver.git
synced 2026-10-30 14:46:30 +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]>
9 lines
108 B
JSON
9 lines
108 B
JSON
{
|
|
"name": "exports-dts-for-mjs",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.mjs"
|
|
}
|
|
}
|
|
}
|