An open API service indexing awesome lists of open source software.

https://github.com/softvisio-node/babel

Babel bundle
https://github.com/softvisio-node/babel

Last synced: 9 months ago
JSON representation

Babel bundle

Awesome Lists containing this project

README

          

> ℹ️ Please, see the full project documentation here:

# Introduction

Optimal `babel` config for parsing and transformations.

## Install

```sh
npm install @softvisio/babel
```

## Usage

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

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

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