Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
use realpath for config require hook fixes case where config is a symlink
Brad Cornes <bradlc41@gmail.com>
4 years ago
1 changed files, 2 additions(+), 1 deletions(-)
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 b1d3794748540cc051aa2095e052839c777fa771..88dd419bf79cdbfdac24dab052d4386b4b173f2a 100644
--- a/src/class-names/index.js
+++ b/src/class-names/index.js
@@ -12,6 +12,7 @@ import getVariants from './getVariants'
 import resolveConfig from './resolveConfig'
 import * as util from 'util'
 import * as path from 'path'
+import * as fs from 'fs'
 import { getUtilityConfigMap } from './getUtilityConfigMap'
 import glob from 'fast-glob'
 import normalizePath from 'normalize-path'
@@ -79,7 +80,7 @@       ? ['separator']
       : ['options', 'separator']
     let userSeperator
     let userPurge
-    let hook = Hook(configPath, (exports) => {
+    let hook = Hook(fs.realpathSync(configPath), (exports) => {
       userSeperator = dlv(exports, sepLocation)
       userPurge = exports.purge
       dset(exports, sepLocation, '__TAILWIND_SEPARATOR__')