We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08cd05f commit 85f5385Copy full SHA for 85f5385
packages/tailwindcss-language-server/src/util/v4/design-system.ts
@@ -219,6 +219,14 @@ export async function loadDesignSystem(
219
Object.assign(design, {
220
dependencies: () => dependencies,
221
222
+ // TODOs:
223
+ //
224
+ // 1. Remove PostCSS parsing — its roughly 60% of the processing time
225
+ // ex: compiling 19k classes take 650ms and 400ms of that is PostCSS
226
227
+ // - Replace `candidatesToCss` with a `candidatesToAst` API
228
+ // First step would be to convert to a PostCSS AST by transforming the nodes directly
229
+ // Then it would be to drop the PostCSS AST representation entirely in all v4 code paths
230
compile(classes: string[]): (postcss.Root | null)[] {
231
let css = design.candidatesToCss(classes)
232
let errors: any[] = []
0 commit comments