Port TS PR #62669: Deprecate --module amd, umd, system, none; --moduleResolution classic#2818
Draft
Port TS PR #62669: Deprecate --module amd, umd, system, none; --moduleResolution classic#2818
Conversation
…eResolution classic - Add deprecated keys for module option (none, amd, system, umd) - Add removal diagnostic for moduleResolution classic - Update commented-out bundler check with new diagnostic and CommonJS exclusion - Accept baseline changes for help output and error messages Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Port deprecation of module types and resolution settings
Port TS PR #62669: Deprecate --module amd, umd, system, none; --moduleResolution classic
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports applicable parts of microsoft/TypeScript#62669 to the Go port.
Changes
--modulevalues as deprecated: Addednone,amd,system,umdtocommandLineOptionDeprecated, filtering them from--helpoutput and error suggestion text--moduleResolution classic: Emits "has been removed" when explicitly set, consistent with existingnode10handlingCommonJSexclusion)Not ported
module: Noneremoval diagnostic:ModuleKindNone = 0is Go's zero value — indistinguishable from "not set"GetModuleResolutionKinddefault change (deprecated modules → Classic): Classic resolution is unimplemented in the Go resolver; deprecated modules continue mapping to Bundlercompletions.tschanges: Go port uses a different auto-import origin structure withoutExport/ResolvedExportflags💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.