Skip to content

Deprecate, remove less-used --module targets (AMD, SystemJS, UMD) #62199

@DanielRosenwasser

Description

@DanielRosenwasser

For the sake of simplicity, TypeScript 7.0 will not implement support for the following --module options:

  • amd
  • umd
  • systemjs

We believe most new code should use ECMAScript modules as that is the standard, as well as the common interface between bundlers and other tools. ECMAScript modules can largely serve the use-cases that these formats served, provided a mix of bundlers, import maps, or both).

In TypeScript 6.0, these options will be deprecated. TypeScript will issue an error if you use them unless you enable the ignoreDeprecations flag.

In TypeScript 7.0, the options will not be recognized, and the defaults will be --module esnext with --moduleResolution bundler.

Metadata

Metadata

Assignees

Labels

Breaking ChangeWould introduce errors in existing codeCommittedThe team has roadmapped this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions