Skip to content

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

@JessicaSachs

Description

@JessicaSachs

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions