Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Account for `loadConfig` returning `{default:config}` just in case See also: https://github.com/tailwindlabs/tailwindcss/pull/10898
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 1 additions(+), 0 deletions(-)
M packages/tailwindcss-language-server/src/server.ts -> packages/tailwindcss-language-server/src/server.ts
diff --git a/packages/tailwindcss-language-server/src/server.ts b/packages/tailwindcss-language-server/src/server.ts
index 82c24c06a25eb72cbefad254b009c642b880d7cf..912e9df2d80f9533e82425ecd958f4c560081709 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -911,6 +911,7 @@     let hook: Hook
 
     if (loadConfig.module) {
       originalConfig = await loadConfig.module(state.configPath)
+      originalConfig = originalConfig.default ?? originalConfig
       state.jit = true
     } else {
       hook = new Hook(fs.realpathSync(state.configPath), (exports) => {