pintariching / railwind

Tailwind compiler rewritten in rust
MIT License
317 stars 9 forks source link

[question] Multiple definitions of the same class are generated. #7

Closed vermutely closed 1 year ago

vermutely commented 1 year ago

I found that the same class is generated when I am working on adding a classes. The following sample generates multiple w-full classes.

Example

Tailwind Play

Tailwind Play

Railwind

Railwind

Question

This behavior differs from Tailwind Play. Do you have any plans to fix?

If the maintainer is busy with a scheduled fix, I can make arrangements to see if I can handle it.

pintariching commented 1 year ago

How could I miss something so obvious. Thanks for the heads up, I'll look into it, this should definetly be fixed.

vermutely commented 1 year ago

@pintariching Thank you very much for the swift reply.

If you are busy, please assign me a job. I would love to support this great project.

pintariching commented 1 year ago

Okay I think I fixed this now. Before I used a Vec to store all the classes, now I'm using an IndexMap to preserve the order to pass the tests and to remove duplicate classes if they happen.