Skip to content

Support directory imports for index.{ts,cts,mts} #1198

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

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

thecrypticace
Copy link
Contributor

Fixes #1196

@thecrypticace thecrypticace marked this pull request as ready for review February 12, 2025 13:45
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need something similar for Tailwind CSS itself? 🤔

@thecrypticace
Copy link
Contributor Author

I think it'll already work in Vite (but reported it as working in Tailwind CSS) but maybe do need to do that in @tailwindcss/node for postcss and the CLI. Lemme check…

@thecrypticace
Copy link
Contributor Author

From @tailwindcss/node and @tailwindcss/cli:

Screenshot 2025-02-12 at 08 51 10

So not exactly but we should probably add .mts and .cts to the lists there.

@thecrypticace thecrypticace merged commit 4d4d20e into main Feb 12, 2025
@thecrypticace thecrypticace deleted the fix/dir-import-ts-files branch February 12, 2025 14:10
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.

Local plugins added using @plugin, as a directory import, with an index.ts entrypoint, fails to be picked up
3 participants