Skip to content

Commit 90f6536

Browse files
RobinMalfaitbradlc
andauthored
Use Tailwind's context.getClassOrder(classes) (#57)
* 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 <[email protected]>
1 parent 3e91ec3 commit 90f6536

File tree

4 files changed

+129
-89
lines changed

4 files changed

+129
-89
lines changed

package-lock.json

Lines changed: 82 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"prettier-plugin-svelte": "^2.6.0",
3939
"recast": "^0.20.5",
4040
"rimraf": "^3.0.2",
41-
"tailwindcss": "^3.0.15"
41+
"tailwindcss": "^3.0.23"
4242
},
4343
"peerDependencies": {
4444
"prettier": ">=2.2.0"

0 commit comments

Comments
 (0)