Skip to content

TS's new node ESM support #1414

Description

@cspotcode

Will need work on our side to integrate.

microsoft/TypeScript#44501
weswigham/TypeScript#67

Roughly

adds new module: node12 and module: nodeNext configs
In them:

  • existing extensions obey package.json "type" field
  • new extensions .mts, .mjs, .cts, .cjs force one or the other; ignore package.json "type" field

Questions I still have

Are any of the above assumed to be modules without needing to add export {};?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    you can do thisGood candidate for a pull request.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions