fix: reset all transforms before eval
This commit is contained in:
parent
0003ce174e
commit
d58b3e490b
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue