# babel-plugin-fuck-optimization

> Plugin for Babel which fucks all the optimizations in your code

Latest version **2.1.1** (published 2017-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-fuck-optimization
pnpm add babel-plugin-fuck-optimization
yarn add babel-plugin-fuck-optimization
bun add babel-plugin-fuck-optimization
```

## 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.1.1 |
| Published | 2017-05-11 |
| First published | 2017-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ghaiklor |
| Maintainers | bniwredyc, ghaiklor |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-fuck-optimization
- npm.io page: https://npm.io/package/babel-plugin-fuck-optimization

## Recent versions

- 2.1.1 (latest) — 2017-05-11
- 2.1.0 — 2017-05-10
- 2.0.0 — 2017-05-10
- 1.0.0 — 2017-05-10

## README

# babel-plugin-fuck-optimization

Use this plugin when you want to see beautiful bailouts in your code.

Transforms this:

```js
function add(a, b) {
  return a + b;
}
```

into this:

```js
function add(a, b) {
  var __deoptimization = {
    __proto__: "notsofast"
  };
  
  return a + b;
}
```

It traverses all the `BlockStatement` and if its parent is `FunctionDeclaration`, `ClassMethod`, `FunctionExpression` or `ArrowFunctionExpression` (basically all functions in your code)
~~it pushes the new `TryStatement` with `CatchClause` within the `BlockStatement`~~ (optimized in V8 5.3.1)
it adds an object literal declaration with modified `__proto__` property.

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