ℹ️ Please, see the full project documentation here:
https://softvisio-node.github.io/babel/
Optimal babel
config for parsing and transformations.
npm install @softvisio/babel
import { createConfig, parseAsync, transformAsync } from "@softvisio/babel";
// parse
const ast = await parseAsync( code, createConfig() );
// transform
const { code, map } = await transformAsync( code, createConfig() );