tailwindcss
tailwindcss copied to clipboard
Add .mts and .cts support to tailwind.config or respect parent's package.json when loading TypeScript configuration files.
Describe the feature
I cannot avoid these errors unless I change my Tailwind config to be JavaScript with an explicit extension (tailwind.config.mjs
) even though my project has "type": "module"
declared.
Is it possible to properly respect the projects package.json
's type or otherwise support the official TypeScript file extensions that match their JavaScript parallels?
Additional information
- [x] Would you be willing to help implement this feature?
- [ ] Could this feature be implemented as a module?