fix: remove prebake specific logic in transpiler

This commit is contained in:
Felix Roos 2026-02-13 08:42:20 +01:00
parent 8984055ea6
commit bdeafbaf75
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -25,7 +25,6 @@ export function transpiler(input, options = {}) {
emitMiniLocations = true,
emitWidgets = true,
blockBased = false,
prebake = false,
range = [],
} = options;
@ -269,7 +268,7 @@ export function transpiler(input, options = {}) {
}
// add return to last statement
if (addReturn && !prebake) {
if (addReturn) {
const { expression } = body[body.length - 1];
body[body.length - 1] = {
type: 'ReturnStatement',