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