Skip to content

Commit

Permalink
Use Tailwind's context.getClassOrder(classes) (#57)
Browse files Browse the repository at this point in the history
* prefer Tailwind's `context.getClassOrder()` if it exists

We have to keep the existing code for now, since the plugin will prefer
the user's tailwind version. Hopefully we can remove this in future
versions.

* bump tailwindcss dependency

* add full getClassOrder polyfill

This will also add the `group` and `peer` for older versions of Tailwind
CSS

* Update `getClassOrder` polyfill to support all Tailwind v3 releases

* Add "parasite utilities" test

Co-authored-by: Brad Cornes <bradlc41@gmail.com>
  • Loading branch information
RobinMalfait and bradlc committed Feb 21, 2022
1 parent 3e91ec3 commit 90f6536
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 89 deletions.
162 changes: 82 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -38,7 +38,7 @@
"prettier-plugin-svelte": "^2.6.0",
"recast": "^0.20.5",
"rimraf": "^3.0.2",
"tailwindcss": "^3.0.15"
"tailwindcss": "^3.0.23"
},
"peerDependencies": {
"prettier": ">=2.2.0"
Expand Down

0 comments on commit 90f6536

Please sign in to comment.