Account for `loadConfig` returning `{default:config}` just in case
See also: https://github.com/tailwindlabs/tailwindcss/pull/10898master
parent
2dd2449922
commit
85e32e3adf
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue