Skip to content

Commit

Permalink
fix: resolve preset on directory (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpreston321 authored Dec 27, 2024
1 parent f724382 commit bf8de6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ export async function resolvePreset(
preset = autoPreset;
} else if (typeof preset === "string") {
preset =
(await createJiti(rootDir, { interopDefault: true }).import(preset)) ||
{};
(await createJiti(rootDir, { interopDefault: true }).import(preset, {
default: true,
})) || {};
}
if (typeof preset === "function") {
preset = preset();
Expand Down

0 comments on commit bf8de6b

Please sign in to comment.