Skip to content

Commit

Permalink
fix: read cache from evalOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 4, 2023
1 parent adcde06 commit 2c1765e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jiti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default function createJITI(
: `_jitiEval.${evalOptions.ext || ".js"}`);
const filename = evalOptions.filename || _resolve(id);
const ext = evalOptions.ext || extname(filename);
const cache = (opts.cache || parentCache || {}) as ModuleCache;
const cache = (evalOptions.cache || parentCache || {}) as ModuleCache;

// Transpile
const isTypescript = ext === ".ts" || ext === ".mts" || ext === ".cts";
Expand Down

0 comments on commit 2c1765e

Please sign in to comment.