Open CarlOlson opened 3 years ago
Sorry just my 2 cents, it seems the extractor works with ReScript already (https://github.com/dylanirlbeck/tailwind-ppx/blob/master/js/index.js) (v0.8.4), at least I could make it work on a pretty lage codebase recently 😕
Got it. The issue seems pretty straightforward. I think it'd just involve a change in the AST matcher, but I'm wondering if there's a way to make it backwards-compatible with people who aren't using ReScript.
Regarding the extractor, there was a PR merged in a while back that adds ReScript support. Let me know if this isn't working for you though.
This may be an unnecessary worry, but I haven't kept up-to-date with the ReScript community while trying to finish up at uni. If someone has a quick fix, please don't hesitate to open a PR.
It looks like other ReScript PPX projects (like
graphql-ppx
andstyled-ppx
) allow backticks.It would also require updating the extractor for purgecss.
Otherwise
tailwind-ppx
works fine inside ReScript. :+1:EDIT:
I forgot about the parens, so even without backticks the extractor needs to be updated for ReScript: