Skip to content

What happened to --experimental-transform-types?聽#5153

Closed

Description

@GongT

Node.js Version

v26.2.0

NPM Version

N/A

Operating System

N/A

Subsystem

Other

Description

I found the --experimental-transform-types flag has been removed in v26.0.0.

Will this feature never implemented? 馃槶

Minimal Reproduction

No response

Output

No response

Before You Submit

  • I have looked for issues that already exist before submitting this
  • My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask

Activity

  1. musshiyaki commented on May 31, 2026

    @musshiyaki

    Looks like this was an intentional semver-major removal in Node.js 26.

    The v26 TypeScript docs history says v26.0.0 removed --experimental-transform-types:
    https://nodejs.org/api/typescript.html

    The v26.0.0 release notes also list:
    (SEMVER-MAJOR) module: remove --experimental-transform-types
    https://nodejs.org/en/blog/release/v26.0.0

    So, as of v26, built-in TypeScript support is stable but limited to type stripping / erasable TypeScript syntax. If your code only needs inline types removed, you should be able to drop the flag. If your code uses TypeScript syntax that requires JavaScript generation, such as enum, parameter properties, runtime namespaces, or import aliases, Node.js will error and you鈥檒l need a third-party transpiler/loader such as tsx, tsc, etc.

    I think this can be closed as answered unless you are seeing a different issue with erasable syntax.

  2. GongT commented on Jun 2, 2026

    @GongT
    Author

    Yes I see the doc, I'm not sure if this feature will come back or not 馃

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions