Skip to content

Commit 85f5385

Browse files
committed
Add todos
1 parent 08cd05f commit 85f5385

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@ export async function loadDesignSystem(
219219
Object.assign(design, {
220220
dependencies: () => dependencies,
221221

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
222230
compile(classes: string[]): (postcss.Root | null)[] {
223231
let css = design.candidatesToCss(classes)
224232
let errors: any[] = []

0 commit comments

Comments
 (0)