Skip to content

Commit 6b01c37

Browse files
author
Ives van Hoorne
committed
Reset module compilation if it throws
1 parent 0f65e76 commit 6b01c37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/app/src/sandbox/eval/transpiled-module.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ export default class TranspiledModule {
741741
} catch (e) {
742742
e.tModule = e.tModule || transpiledModule;
743743

744+
this.resetCompilation();
745+
744746
throw e;
745747
}
746748
}

0 commit comments

Comments
 (0)