Proposal: emit files without .ts
extension to get custom file extension
#30076
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Search Terms
Suggestion
It is very useful if you can customize the output extension.
But mapping extension is boring and painful.
Maybe there is another way to make this easier.
If we don't map the extension, we just erase the
.ts
or.tsx
extension to achieve it.A compilerOptions is needed to prevent break existing TypeScript code.
Use Cases
.mjs
file for Node Module,.es
or other file extensions without additional steps. (e.g. useful for tsc watching mode)Examples
input:
output:
input:
output:
input:
output:
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: