Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix: Add back pnpm support
Signature
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEk3sBiNAb7hmW2YbuKyWUkXQXjr0FAl9HqWQACgkQKyWUkXQX jr0KuAf/Re46UtgF6VMRUVGbUIhoLW/+ioq/luhecrAw0qCMP2rFUyZSGRbVRM2g 6JLqwaafFKHa56cH8gsVkkH8xHED+ys0V2OJKf3C5PcLQVsoyU4LJLhEy39DEZFg MXIibWmB0USnyO7WAFo1ToYdU5n7NVTpRqbtHq9n9D/i0xJBHV1pTWfCxefLtBc/ yLMu0Vg3JxeC856WuAJT9oz+Zpwip57g62GP7HhNPRLUVROV/n3RXWSfdufYKx18 vtYbCkuA544Rr3Lwb8saCkUKUDKBFNgFrgDGbAZNnm4RzPs11WB4vtVmI7HT2aRk Mkd16NKo2RciJgZ5LNDHjGemmfUIiA== =92GU -----END PGP SIGNATURE-----
DanSnow <dododavid006@gmail.com>
4 years ago
3 changed files, 10 additions(+), 7 deletions(-)
M src/class-names/getPlugins.js -> src/class-names/getPlugins.js
diff --git a/src/class-names/getPlugins.js b/src/class-names/getPlugins.js
index 23941feb6654e1cfe59cccab9b65caec8e96d4e2..5f3bf80954a7e610f14c2506b93415fcfb372feb 100644
--- a/src/class-names/getPlugins.js
+++ b/src/class-names/getPlugins.js
@@ -5,9 +5,10 @@ import { isObject } from './isObject'
 import { withUserEnvironment } from './environment'
 
 export async function getBuiltInPlugins({ cwd, resolvedConfig }) {
-  return withUserEnvironment(cwd, ({ require }) => {
+  return withUserEnvironment(cwd, ({ require, resolve }) => {
+    const tailwindBase = path.dirname(resolve('tailwindcss/package.json'))
     try {
-      return require('tailwindcss/lib/corePlugins.js').default({
+      return require('./lib/corePlugins.js', tailwindBase).default({
         corePlugins: resolvedConfig.corePlugins,
       })
     } catch (_) {
M src/class-names/index.js -> src/class-names/index.js
diff --git a/src/class-names/index.js b/src/class-names/index.js
index 4ff3211ac62cfb12b55d47737ca32debe81131a1..60553ae64950af2d86c0555ed4c0912ccc22a5ee 100644
--- a/src/class-names/index.js
+++ b/src/class-names/index.js
@@ -185,7 +185,8 @@     let featureFlags
 
     try {
 import extractClassNames from './extractClassNames'
-    hook.watch()
+        let postcssResult
+      featureFlags = require('./lib/featureFlags.js', tailwindBase).default
     } catch (_) {}
 
     return { version, featureFlags }
M src/class-names/resolveConfig.js -> src/class-names/resolveConfig.js
diff --git a/src/class-names/resolveConfig.js b/src/class-names/resolveConfig.js
index 48aac871d5f0ed3e3e69488f2c2d0879fd7f7bf9..6085a00b9366ac34fc3fca64ea9102823e7cd2e3 100644
--- a/src/class-names/resolveConfig.js
+++ b/src/class-names/resolveConfig.js
@@ -12,14 +12,15 @@     config = __non_webpack_require__(config)
   }
 
   let resolve = (x) => x
-  withUserEnvironment(cwd, ({ require }) => {
+  withUserEnvironment(cwd, ({ require, resolve }) => {
+    const tailwindBase = path.dirname(resolve('tailwindcss/package.json'))
     try {
-      resolve = require('tailwindcss/resolveConfig.js')
+      resolve = require('./resolveConfig.js', tailwindBase)
     } catch (_) {
       try {
-import * as path from 'path'
+import decache from './decache'
     }
-import decache from './decache'
+import { withUserEnvironment } from './environment'
         resolve = (config) => resolveConfig([config, defaultConfig])
       } catch (_) {}
     }