rewriteImportExtensions
option for TS preset does not work with .tsx files
#16021
Closed
1 task done
Labels
i: enhancement
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
💻
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.
The text was updated successfully, but these errors were encountered: