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