-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always resolve package.json exports in type reference directives #58638
base: main
Are you sure you want to change the base?
Conversation
@@ -14,6 +14,7 @@ export const a = <div></div>; | |||
"main": "", | |||
"types": "index.d.ts", | |||
"exports": { | |||
".": "./index.d.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like in normal module resolution, a failed exports
lookup ends the resolution process. We could decide to deviate from normal module resolution and fall back to types
/main
/index.d.ts
if this fails—that would eliminate all the new errors we see in baselines, I think.
@typescript-bot test top400 |
@andrewbranch Here are the results of running the top 400 repos comparing Something interesting changed - please have a look. Details
|
@andrewbranch Here are some more interesting changes from running the top 400 repos suite Details
|
@andrewbranch Here are some more interesting changes from running the top 400 repos suite Details
|
@andrewbranch Here are some more interesting changes from running the top 400 repos suite Details
|
@andrewbranch Here are some more interesting changes from running the top 400 repos suite Details
|
@andrewbranch Here are some more interesting changes from running the top 400 repos suite Details
|
@andrewbranch Here are some more interesting changes from running the top 400 repos suite Details
|
@andrewbranch Here are some more interesting changes from running the top 400 repos suite Details
|
@andrewbranch Here are some more interesting changes from running the top 400 repos suite Details
|
Lol, this might be too breaky as-is 😆 |
Not planning to merge before 5.6.
Fixes #47444