From 85e32e3adfc8bc6ff5cf623c47a75cbdff1350cd Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Wed, 29 Mar 2023 15:50:12 +0100 Subject: [PATCH] Account for `loadConfig` returning `{default:config}` just in case See also: https://github.com/tailwindlabs/tailwindcss/pull/10898 --- packages/tailwindcss-language-server/src/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/tailwindcss-language-server/src/server.ts b/packages/tailwindcss-language-server/src/server.ts index 82c24c0..912e9df 100644 --- a/packages/tailwindcss-language-server/src/server.ts +++ b/packages/tailwindcss-language-server/src/server.ts @@ -911,6 +911,7 @@ async function createProjectService( 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) => {