Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mts and cts file #5201

Closed
xiaoxiangmoe opened this issue Oct 5, 2021 · 4 comments · Fixed by #8729 or #9268
Closed

Support mts and cts file #5201

xiaoxiangmoe opened this issue Oct 5, 2021 · 4 comments · Fixed by #8729 or #9268
Labels
enhancement New feature or request p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@xiaoxiangmoe
Copy link
Contributor

xiaoxiangmoe commented Oct 5, 2021

https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#new-file-extensions

TypeScript 4.5 add mts and cts file extension, we need support this in vite

@Shinigami92 Shinigami92 added p2-nice-to-have Not breaking anything but nice to have (priority) enhancement New feature or request and removed enhancement: pending triage labels Oct 5, 2021
@bluwy
Copy link
Member

bluwy commented Oct 6, 2021

esbuild 0.13.4 also now supports this. There could be a few more tweaks needed for Vite's part.

@dominikg
Copy link
Contributor

dominikg commented Oct 6, 2021

update tsconfck to 1.1 to support resolving .mts and .cts files in solution-style projects https://github.com/dominikg/tsconfck/blob/main/CHANGELOG.md#110-2021-10-06

@citrus327
Copy link

need this for vitest

@github-actions github-actions bot locked and limited conversation to collaborators Jul 9, 2022
@bluwy
Copy link
Member

bluwy commented Jul 16, 2022

Re-opening as the PR covers config files only, not source files.

@bluwy bluwy reopened this Jul 16, 2022
@vitejs vitejs unlocked this conversation Jul 16, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants