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) {
|
if (loadConfig.module) {
|
||||||
originalConfig = await loadConfig.module(state.configPath)
|
originalConfig = await loadConfig.module(state.configPath)
|
||||||
|
originalConfig = originalConfig.default ?? originalConfig
|
||||||
state.jit = true
|
state.jit = true
|
||||||
} else {
|
} else {
|
||||||
hook = new Hook(fs.realpathSync(state.configPath), (exports) => {
|
hook = new Hook(fs.realpathSync(state.configPath), (exports) => {
|
||||||
|
|
Loading…
Reference in New Issue