- 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

View file

@ -129,8 +129,8 @@ export default (_code) => {
if (shouldAddReturn) {
addReturn(shifted);
}
const generated = undisguiseImports(codegen(shifted));
return generated;
const output = undisguiseImports(codegen(shifted));
return { output };
};
// renames all import statements to "_mport" as Shift doesn't support dynamic import.