Skip to content

Won't sort classes in .svelte files #464

Description

@mrsylvestre

What version of prettier-plugin-tailwindcss are you using?
0.8.0

What version of Tailwind CSS are you using?
^4.3.0

What version of Node.js are you using?
24.13.1

What package manager are you using?
pnpm

What operating system are you using?
Linux (Ubuntu 24 LTS)

Reproduction URL
Tried making a StackBlitz but it would never sort any files (.svelte, .html, .ts)... If you want to repro, reach out to me I can jump on a call and showcase as needed.
https://stackblitz.com/edit/sveltejs-kit-template-default-tvdhiybv?file=src%2Froutes%2F%2Bpage.svelte

Describe your issue

I cannot get tailwind classes to get sorted in .svelte files, but it will work fine with .html or even .ts files (using tv())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions