File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/tailwindcss-language-server/src/util/v4 Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 [ ] = [ ]
You can’t perform that action at this time.
0 commit comments