fix: reset all transforms before eval

This commit is contained in:
Felix Roos 2025-06-24 06:12:21 +02:00
parent 0003ce174e
commit d58b3e490b
No known key found for this signature in database

View file

@ -191,6 +191,7 @@ export function repl({
await injectPatternMethods();
setTime(() => scheduler.now()); // TODO: refactor?
await beforeEval?.({ code });
allTransforms = []; // reset all transforms
shouldHush && hush();
let { pattern, meta } = await _evaluate(code, transpiler, transpilerOptions);
if (Object.keys(pPatterns).length) {