File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
tailwindcss-language-server/src
tailwindcss-language-service/src/util Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -767,6 +767,13 @@ async function createProjectService(
767
767
. default
768
768
) ,
769
769
} ,
770
+ evaluateTailwindFunctions : {
771
+ module : firstOptional (
772
+ ( ) =>
773
+ require ( resolveFrom ( configDir , 'tailwindcss/lib/lib/evaluateTailwindFunctions' ) )
774
+ . default
775
+ ) ,
776
+ } ,
770
777
}
771
778
} catch ( _ ) {
772
779
try {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export function generateRules(
18
18
19
19
let root = state . modules . postcss . module . root ( { nodes : rules . map ( ( [ , rule ] ) => rule ) } )
20
20
state . modules . jit . expandApplyAtRules . module ( state . jitContext ) ( root )
21
+ state . modules . jit . evaluateTailwindFunctions ?. module ?.( state . jitContext ) ( root )
21
22
22
23
let actualRules : Rule [ ] = [ ]
23
24
root . walkRules ( ( subRule ) => {
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ export interface State {
110
110
generateRules : { module : any }
111
111
createContext : { module : any }
112
112
expandApplyAtRules : { module : any }
113
+ evaluateTailwindFunctions ?: { module : any }
113
114
}
114
115
}
115
116
browserslist ?: string [ ]
You can’t perform that action at this time.
0 commit comments