in src/ast.ts [159:171]
Program(path) {
if (shouldApplyIIFE) {
const body = path.node.body;
// Create an IIFE around the body
const iife = t.callExpression(
t.arrowFunctionExpression([], t.blockStatement(body)),
[],
);
// Replace the original program body with the IIFE
path.replaceWith(t.program([t.expressionStatement(iife)]));
shouldApplyIIFE = false;
}
},