tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

Add .mts and .cts support to tailwind.config or respect parent's package.json when loading TypeScript configuration files.

Open JessicaSachs opened this issue 4 months ago • 2 comments

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?

Image

Additional information

  • [x] Would you be willing to help implement this feature?
  • [ ] Could this feature be implemented as a module?

JessicaSachs avatar Oct 08 '24 00:10 JessicaSachs