Account for `loadConfig` returning `{default:config}` just in case

See also: https://github.com/tailwindlabs/tailwindcss/pull/10898
master
Brad Cornes 2023-03-29 15:50:12 +01:00
parent 2dd2449922
commit 85e32e3adf
1 changed files with 1 additions and 0 deletions

View File

@ -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) => {