Skip to content

Commit 2c1765e

Browse files
committed
fix: read cache from evalOptions
1 parent adcde06 commit 2c1765e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jiti.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export default function createJITI(
339339
: `_jitiEval.${evalOptions.ext || ".js"}`);
340340
const filename = evalOptions.filename || _resolve(id);
341341
const ext = evalOptions.ext || extname(filename);
342-
const cache = (opts.cache || parentCache || {}) as ModuleCache;
342+
const cache = (evalOptions.cache || parentCache || {}) as ModuleCache;
343343

344344
// Transpile
345345
const isTypescript = ext === ".ts" || ext === ".mts" || ext === ".cts";

0 commit comments

Comments
 (0)