-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Does it make sense to allow module: nodenext
+ moduleResolution: node
?
#48854
Comments
So it is technically a useful configuration - we won't detect any esm files (since the resolution mode is pre-esm), but we will use the new cjs transform (ie, leaving dynamic import alone) on all the input modules. |
To make a long story short
If you had a simple table like that (possibly with more entries) next to the documentation for both module and moduleResolution, I think it would prevent unnecessary confusion. That is apart from the question of whether that combination should be allowed |
the moduleResolution option naming is bad, but not node12/nodenext(now node16/nodenext), and not updated on tsconfig reference page the |
Strongly disagree. The TSConfig reference docs should change. |
In #48835, a user ran into an issue where the combined options were questionable. It seems like an innocent mistake, and by all means
moduleResolution: node
sounds compatible withmodule: nodenext
ormoduleResolution: node
.Should we issue an error in some of these cases?
CC @weswigham @andrewbranch
The text was updated successfully, but these errors were encountered: