You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: emit files without .ts extension to get custom file extension #30076
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
Output the .mjs file for Node Module,
Output .es or other file extensions without additional steps. (e.g. useful for tsc watching mode)
Activity
magic-akari commentedon Apr 17, 2019
Related issue:
.mjsoutput #18442xialvjun commentedon Jul 12, 2019
just add a compiler option
--outSuffixsotsc --module es6 --outSuffix mjs...#32373
viT-1 commentedon Aug 15, 2019
Problem is wider, I need in
--outSuffix /index.js=)