Skip to content

Commit

Permalink
Account for loadConfig returning {default:config} just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Mar 29, 2023
1 parent 2dd2449 commit 85e32e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/tailwindcss-language-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 85e32e3

Please sign in to comment.