- transpiler now always returns an object

- emit transpiler metadata from evaluate / afterEval
- currently logging miniLocations from Repl.jsx
This commit is contained in:
Felix Roos
2023-07-02 14:15:54 +02:00
parent 5f271ed127
commit 8e717d2ea1
7 changed files with 25 additions and 19 deletions
+2 -1
View File
@@ -128,7 +128,8 @@ export function Repl({ embedded = false }) {
cleanupUi();
cleanupDraw();
},
afterEval: ({ code }) => {
afterEval: ({ code, meta }) => {
console.log('miniLocations', meta.miniLocations);
setPending(false);
setLatestCode(code);
window.location.hash = '#' + encodeURIComponent(btoa(code));