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

Add support for .mts and .cts config files #1025

Merged

Conversation

ErlendS
Copy link
Contributor

@ErlendS ErlendS commented Jul 26, 2024

Related to tailwindlabs/tailwindcss#13940

Now that tailwind supports .cts and .mts files, tailwindcss-intellisense should also look for them.

Added test where I thought it was appropriate. Note - v4 tests fail for me (but they do in the master branch has well)


Context: I recently upgraded to node v22 in my private project and noticed some warnings that lead me to this tailwind PR. I tested switching tailwind.config to be .mts and noticed intellisense had stopped working.

Decided to try to help out by creating a PR that adds support for .cts and .mts files now that tailwind supports them.

@ErlendS ErlendS changed the title fix: add mts and cts files to CONFIG_GLOB Add .mts and .cts files to CONFIG_GLOB Jul 26, 2024
@ErlendS ErlendS changed the title Add .mts and .cts files to CONFIG_GLOB Add support for .mts and .cts config files Jul 26, 2024
@thecrypticace thecrypticace self-assigned this Aug 1, 2024
@thecrypticace thecrypticace merged commit 868769d into tailwindlabs:main Sep 4, 2024
@thecrypticace
Copy link
Contributor

Thanks! Will get a release out with this soon — appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants