Skip to content

Commit b7830c6

Browse files
Support Tailwind CSS v4.0.0-alpha.19 (#310)
* Handle async design system in v4 alpha 19 * Update changelog
1 parent ee50b9b commit b7830c6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Add support for `prettier-plugin-multiline-arrays` ([#299](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/299))
1111
- Add resolution cache for known plugins ([#301](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/301))
12+
- Support Tailwind CSS `v4.0.0-alpha.19` ([#310](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/310))
1213

1314
## [0.6.5] - 2024-06-17
1415

src/config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ async function loadV4(
171171

172172
// Load the design system and set up a compatible context object that is
173173
// usable by the rest of the plugin
174-
let design = tw.__unstable__loadDesignSystem(result.css)
174+
let design = await tw.__unstable__loadDesignSystem(result.css, {
175+
loadPlugin() {
176+
return () => {}
177+
},
178+
})
175179

176180
return {
177181
context: {

0 commit comments

Comments
 (0)