# babel-preset-mobx

> Babel preset for all Mobx plugins.

Latest version **2.0.0** (published 2018-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-preset-mobx
pnpm add babel-preset-mobx
yarn add babel-preset-mobx
bun add babel-preset-mobx
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-09-17 |
| First published | 2016-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Zane Hitchcox |
| Maintainers | rossipedia, zwhitchcox |

## Links

- npm: https://www.npmjs.com/package/babel-preset-mobx
- Repository: https://github.com/zwhitchcox/babel-preset-mobx
- Homepage: https://babeljs.io/
- Issues: https://github.com/zwhitchcox/babel-preset-mobx/issues
- npm.io page: https://npm.io/package/babel-preset-mobx

## Dependencies (4)

- [@babel/plugin-transform-classes](https://npm.io/package/@babel/plugin-transform-classes.md) ^7.0.0
- [@babel/plugin-proposal-decorators](https://npm.io/package/@babel/plugin-proposal-decorators.md) ^7.0.0
- [@babel/plugin-transform-regenerator](https://npm.io/package/@babel/plugin-transform-regenerator.md) ^7.0.0
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.0.0

## Recent versions

- 2.0.0 (latest) — 2018-09-17
- 1.0.3 — 2018-06-21
- 1.0.2 — 2018-02-01
- 1.0.1 — 2016-11-17
- 1.0.0 — 2016-11-17

## README

# babel-preset-mobx

> Babel preset for ES features commonly used with [mobx](https://mobx.js.org/)

This preset includes the following plugins:

* `transform-decorators-legacy`
* `transform-class-properties`
* `transform-es2015-classes`
* `transform-regenerator`

In order to use async/generator functions, you will need to add
[`babel-polyfill`](https://babeljs.io/docs/usage/polyfill/) or
[`regenerator-runtime`](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime)
to your `dependencies` (note: that's not `devDependencies`, as it's needed at
runtime).

## Install

```sh
$ npm install --save-dev babel-preset-mobx
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "presets": ["mobx"]
}
```

### Via CLI

```sh
$ babel script.js --presets mobx
```

### Via Node API

```javascript
require("babel-core").transform("code", {
  presets: ["mobx"]
});
```

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