From 2c1765ea357fc17a850d23bd70bcb745aee47243 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 4 Jul 2023 15:49:13 +0200 Subject: [PATCH] fix: read cache from `evalOptions` --- src/jiti.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jiti.ts b/src/jiti.ts index d78423c9..732a87d2 100644 --- a/src/jiti.ts +++ b/src/jiti.ts @@ -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";