Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 566 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 566 Bytes

ℹ️ 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/babel

Usage

import { createConfig, parseAsync, transformAsync } from "@softvisio/babel";

// parse
const ast = await parseAsync( code, createConfig() );

// transform
const { code, map } = await transformAsync( code, createConfig() );