tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Account for `loadConfig` returning `{default:config}` just in case
See also: https://github.com/tailwindlabs/tailwindcss/pull/10898
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) => {