Skip to content

Commit eea9f59

Browse files
Handle an async design system (#1031)
1 parent 65f70e4 commit eea9f59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/tailwindcss-language-server/src/util/v4/design-system.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ export async function loadDesignSystem(
3737
let resolved = await resolveCssImports().process(css, { from: filepath })
3838

3939
// Step 3: Take the resolved CSS and pass it to v4's `loadDesignSystem`
40-
let design = tailwindcss.__unstable__loadDesignSystem(resolved.css) as DesignSystem
40+
let design: DesignSystem = await tailwindcss.__unstable__loadDesignSystem(resolved.css, {
41+
loadPlugin() {
42+
return () => {}
43+
},
44+
})
4145

4246
// Step 4: Augment the design system with some additional APIs that the LSP needs
4347
Object.assign(design, {

0 commit comments

Comments
 (0)