# babel-parser-minimal

> This is a minimal build of [`@babel/parser`](https://babeljs.io/docs/en/babel-parser), with most of the non-standard/proposal features stripped out. It is heavily minified and any unused code is attempted to be removed. It should work exactly the same as

Latest version **1.1.0** (published 2021-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-parser-minimal
pnpm add babel-parser-minimal
yarn add babel-parser-minimal
bun add babel-parser-minimal
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-02-01 |
| First published | 2021-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 128.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | calebeby |

## Links

- npm: https://www.npmjs.com/package/babel-parser-minimal
- npm.io page: https://npm.io/package/babel-parser-minimal

## Recent versions

- 1.1.0 (latest) — 2021-02-01
- 1.0.1 — 2021-01-31
- 1.0.0 — 2021-01-31

## README

# @babel/parser minimal bundle

This is a minimal build of [`@babel/parser`](https://babeljs.io/docs/en/babel-parser), with most of the non-standard/proposal features stripped out. It is heavily minified and any unused code is attempted to be removed. It should work exactly the same as `@babel/parser` (except for unsupported plugins), and any case where it emits different output is a bug.

It includes support for TypeScript and JSX, as well as standardized modern features. It does not support most proposals.

Supported plugins:

- `functionSent`
- `estree`
- `classProperties`
- `classPrivateProperties`
- `classPrivateMethods`
- `moduleStringNames`
- `topLevelAwait`
- `jsx`
- `typescript`

Unsupported plugins:

- `placeholders`
- `flow`
- `decorators`
- `v8intrinsic`
- `importAssertions`
- `moduleAttributes`
- `flowComments`
- `privateIn`
- `recordAndTuple`
- `functionBind`
- `pipelineOperator`
- `throwExpressions`
- `doExpressions`
- `partialApplication`
- `decimal`
- `classStaticBlock`
- `decorators-legacy`
- `exportDefaultFrom`

## Install

```
npm i -D babel-parser-minimal
```

## API

The API is exactly the same as https://babeljs.io/docs/en/babel-parser#api, but if you attempt to use any unsupported plugin, it will throw an error.

## Example

```js
import { parse } from 'babel-parser-minimal'

// TS source code
const input = 'const foo: string = "bar"'
const ast = parse(input, { plugins: ['typescript'] })
```

---
_Source: https://npm.io/package/babel-parser-minimal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
