diff --git a/packages/tailwindcss-language-server/src/server.ts b/packages/tailwindcss-language-server/src/server.ts index d981fddb15908e1416873fea6ffee10aef9b2269..6f31a61684ed6e378b58292ebf09bd0b53d06a1f 100644 --- a/packages/tailwindcss-language-server/src/server.ts +++ b/packages/tailwindcss-language-server/src/server.ts @@ -767,13 +767,6 @@ require(resolveFrom(configDir, 'tailwindcss/lib/jit/lib/expandApplyAtRules')) .default ), }, - evaluateTailwindFunctions: { - module: firstOptional( - () => - require(resolveFrom(configDir, 'tailwindcss/lib/lib/evaluateTailwindFunctions')) - .default - ), - }, } } catch (_) { try { diff --git a/packages/tailwindcss-language-service/src/util/jit.ts b/packages/tailwindcss-language-service/src/util/jit.ts index 8ad7a309d7fffba86398963b3514c183673cc308..40250d19b2bcc41c1a8fff0e5d2ae202c6620fc9 100644 --- a/packages/tailwindcss-language-service/src/util/jit.ts +++ b/packages/tailwindcss-language-service/src/util/jit.ts @@ -18,7 +18,6 @@ .sort(([a], [z]) => bigSign(a - z)) let root = state.modules.postcss.module.root({ nodes: rules.map(([, rule]) => rule) }) state.modules.jit.expandApplyAtRules.module(state.jitContext)(root) - state.modules.jit.evaluateTailwindFunctions?.module?.(state.jitContext)(root) let actualRules: Rule[] = [] root.walkRules((subRule) => { diff --git a/packages/tailwindcss-language-service/src/util/state.ts b/packages/tailwindcss-language-service/src/util/state.ts index cc2c416c66506b6563aaf2f7d762fef274b8a46b..5b8153a0e4863056033142acc76b895baa2bc386 100644 --- a/packages/tailwindcss-language-service/src/util/state.ts +++ b/packages/tailwindcss-language-service/src/util/state.ts @@ -111,8 +111,6 @@ generateRules: { module: any } createContext: { module: any } expandApplyAtRules: { module: any } } -import type { TextDocument } from 'vscode-languageserver-textdocument' -} import type { Postcss } from 'postcss' } browserslist?: string[]