Skip to content

rewriteImportExtensions option for TS preset does not work with .tsx files #16021

Closed
@jimmydief

Description

💻

  • Would you like to work on this feature?

What problem are you trying to solve?

#15913 introduced a useful option for the TS preset which allows TS code authored using "moduleResolution": "NodeNext" and "allowImportingTsExtensions": true to be transpiled to JS without breaking imports. Unfortunately, this setting does not currently apply to TSX files and imports.

Describe the solution you'd like

Include .tsx files in the new behavior introduced by the flag.

Describe alternatives you've considered

Don't use "moduleResolution": "NodeNext" or "allowImportingTsExtensions": true.

Documentation, Adoption, Migration Strategy

Unclear if this would be considered a breaking change? Seems like a fix to me.

Metadata

Assignees

No one assigned

    Labels

    i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions