Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 544 Bytes

File metadata and controls

25 lines (16 loc) · 544 Bytes

ℹ️ Please, see the full project documentation here:
https://corejslib.github.io/babel/

Introduction

Optimal babel config for parsing and transformations.

Install

npm install @corejslib/babel

Usage

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

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

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