Skip to content

Commit 1420b72

Browse files
committedOct 5, 2024·
fix: update to jiti 2.3
1 parent 5b62926 commit 1420b72

File tree

3 files changed

+45
-43
lines changed

3 files changed

+45
-43
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"defu": "^6.1.4",
4242
"dotenv": "^16.4.5",
4343
"giget": "^1.2.3",
44-
"jiti": "^2.0.0",
44+
"jiti": "^2.3.0",
4545
"mlly": "^1.7.1",
4646
"ohash": "^1.1.4",
4747
"pathe": "^1.1.2",

‎pnpm-lock.yaml

+41-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/loader.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ async function resolveConfig<
386386
const contents = await readFile(res.configFile!, "utf8");
387387
res.config = asyncLoader(contents);
388388
} else {
389-
res.config = (await options.jiti!.import(res.configFile!)) as T;
389+
res.config = (await options.jiti!.import(res.configFile!, {
390+
default: true,
391+
})) as T;
390392
}
391393
if (res.config instanceof Function) {
392394
res.config = await res.config();

0 commit comments

Comments
 (0)
Please sign in to comment.