tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/src/server.ts b/src/server.ts
index c934d5e6d00039ef7b3389307d370b0378e60163..306a5155939aa309738fc3375d3b73fd93e0868a 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -411,7 +411,7 @@ if (semver.gte(tailwindcssVersion, '1.99.0')) {
applyComplexClasses = __non_webpack_require__(
resolveFrom(tailwindDir, './lib/lib/substituteClassApplyAtRules')
)
- } else {
+ } else if (semver.gte(tailwindcssVersion, '1.7.0')) {
applyComplexClasses = __non_webpack_require__(
resolveFrom(tailwindDir, './lib/flagged/applyComplexClasses')
)
@@ -463,7 +463,7 @@ state.browserslist = browserslist
state.featureFlags = featureFlags
state.version = tailwindcssVersion
- if (semver.gte(tailwindcssVersion, '1.7.0') && !applyComplexClasses.default.__patched) {
+ if (applyComplexClasses && !applyComplexClasses.default.__patched) {
let _applyComplexClasses = applyComplexClasses.default
applyComplexClasses.default = (config, ...args) => {
let configClone = klona(config)