-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Deprecate, remove --moduleResolution classic #62206
Copy link
Copy link
Closed
Labels
Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeCommittedThe team has roadmapped this issueThe team has roadmapped this issueFix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Metadata
Metadata
Assignees
Labels
Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeCommittedThe team has roadmapped this issueThe team has roadmapped this issueFix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
In TypeScript 7.0, we have no plans to reimplement
--moduleResolution classic- its behavior does not model any resolution system in widespread use, and at best it's just an approximation that avoids Node.js style resolution. Users will be better of usingnodenextorbundlerif necessary.In TypeScript 6.0,
--moduleResolution classicwill be deprecated. Users enabling it will get an error message that can only be suppressed via--ignoreDeprecations.In 7.0, we are thinking the default will be
bundlerunless there is an appropriatemoduleResolutiontarget that matches a given--moduletarget.See more on deprecations/changes for 6.0/7.0 in #54500.