-
-
Notifications
You must be signed in to change notification settings - Fork 264
fix: support Node16 and NodeNext module resolution in experimentalDts
#1225
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
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
commit: |
0523610 to
dd055c8
Compare
dd055c8 to
bf631ea
Compare
bf631ea to
71cdb08
Compare
cfd14d3 to
ba5add4
Compare
ocavue
left a comment
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.
To matches the behavior of tsc's output, .js should only be added for Node16/NodeNext, not for Bundler etc.
|
@ocavue |
ba5add4 to
5ebadf5
Compare
Thanks. TIL. Does other |
@ocavue I think so, but just to be safe let me double check. |
5ebadf5 to
0d8bd49
Compare
@ocavue Answer is yes! |
|
I still believe it’s safer to match In my opinion, a better approach would be to use |
|
@ocavue Can't say I agree with that but if we wanted to offer some more flexibility we could put this functionality behind an option or at least provide an option to disable it? Something like |
|
|
|
@ocavue What do you think of removing
I was going for something that was explicit and self-explanatory. While it may sound complicated, it sounds fairly obvious what it does. But fair enough, what would you have in mind? |
Most packages only have one entrypoint, and removing I just don't think it's necessary to config |
f8e7822 to
b992059
Compare
1efed64 to
6c38296
Compare
6c38296 to
dd7b71d
Compare
dd7b71d to
eb74522
Compare
eb74522 to
5ef88ba
Compare
5ef88ba to
a1e81a3
Compare
|
@ocavue Ok this should be good to go, I tried to do what you suggested in this comment but decided not to do it, here are the reasons:
Please let me know if there is anything else you want me to do. |
ocavue
left a comment
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.
Great! I love your detailed comment. I'll merge it and release.
experimentalDts for Node16/NodeNext module resolutionNode16 and NodeNext module resolution in experimentalDts
This PR:
experimentalDtsto work correctly under TypeScript'sNode16andNodeNextmodule resolution.experimentalDtsdoes not work withNode16andNodeNextmodule resolution #1224.