An astring generator that is compatible with the Babel AST.
import * as astring from "astring";
import { generator, expressionsPrecedence } from "./lib/index";
astring.generate(ast.program, {
generator,
expressionsPrecedence,
comments: true,
sourceMap: null,
});