Skip to content

softvisio-node/babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ℹ️ 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() );