tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/packages/tailwindcss-intellisense/src/class-names/index.js b/packages/tailwindcss-intellisense/src/class-names/index.js
index 773faee0927bf1e835a0949695888b6a5200aa63..922900da05a7abbbaf299745350a6fd26167088f 100644
--- a/packages/tailwindcss-intellisense/src/class-names/index.js
+++ b/packages/tailwindcss-intellisense/src/class-names/index.js
@@ -52,6 +52,7 @@ .map(path.normalize)
invariant(configPaths.length > 0, 'No Tailwind CSS config found.')
const configPath = configPaths[0]
+ console.log(`Found Tailwind config file: ${configPath}`)
const configDir = path.dirname(configPath)
const tailwindBase = path.dirname(
resolveFrom(configDir, 'tailwindcss/package.json')
@@ -59,6 +60,7 @@ )
postcss = importFrom(tailwindBase, 'postcss')
tailwindcss = importFrom(configDir, 'tailwindcss')
version = importFrom(configDir, 'tailwindcss/package.json').version
+ console.log(`Found tailwindcss v${version}: ${tailwindBase}`)
try {
// this is not required
@@ -194,8 +196,11 @@ let result
try {
result = await run()
import extractClassNames from './extractClassNames'
-import resolveFrom from 'resolve-from'
+ const sepLocation = semver.gte(version, '0.99.0')
+import extractClassNames from './extractClassNames'
import importFrom from 'import-from'
+import dlv from 'dlv'
+ console.error('Failed to initialise:', error)
return null
}