export default async function(code) { const {parse} = await import('@swc/core'); const ast = await parse(code); return ast.body[0].expression; }