Skip to content

JIT ignores Svelte class:directives #3975

@kkarpeev

Description

@kkarpeev

What version of @tailwindcss/jit are you using?

0.1.18

What version of Node.js are you using?

12.18.1

What build tool (or framework if it abstracts the build tool) are you using?

webpack 5, postcss 8, tailwindcss 2.0.4

What browser are you using?

all of them, doesn't matter

What operating system are you using?

doesn't matter (windows, wsl, linux)

Reproduction repository

https://github.com/kkarpeev/svelte-tailwind-template

Hello. JIT skips classes specified in a class: directives in .svelte or html files. Svelte is a top-6 js framework in 2020 (according to some TOPs).
Please, add support for this directive asap.

See this small description (and that's all):

If you try the repo (thanks to @non25) you'll see that jit ignores class:w-4={!active}. This class appears on <button... element in this example.
There are two variants for using this directive:

  1. class:whatever-class-name123_
  2. class:whatever-class-name123_={some_boolean_expression}

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions