Gate usage of --module
/--moduleResolution
node12
/nodenext
on nightly releases
#46454
Labels
Committed
The team has roadmapped this issue
Fix Available
A PR has been opened for this issue
Suggestion
An idea for TypeScript
Milestone
In #46452 and #46453, we came to the conclusion that the
nodenext
andnode12
settings formodule
andmoduleResolution
should not ship in TypeScript 4.5, and should instead be gated on nightly releases.In a
beta
/rc
/insiders
/stable
(or really, any non-dev
) releasetsc
should error on this flag combinationOne possible error message would be:
another might be
One thing that's still a little fuzzy - I think
.mts
/.mjs
/.cts
/.cjs
should be passively allowed in editing; but should they be errors to include within a compilation? Is it possible to make that distinction today?The text was updated successfully, but these errors were encountered: